# How to set the qt path for Paraview installed via vcpkg?

**URL:** https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968
**Category:** ParaView Support
**Created:** [January 12, 2025, 5:11am UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968 "2025-01-12T05:11:44Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![flipper](https://discourse.paraview.org/user_avatar/discourse.paraview.org/flipper/32/15693_2.png) [@flipper](https://discourse.paraview.org/u/flipper)
#### Post date: [January 12, 2025, 5:11am UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968/1 "2025-01-12T05:11:44Z")

</div>

My Qt application wants to incorporate ParaView installed via vcpkg, but the Qt bundled with ParaView conflicts with my own Qt. How can I set the path of the Qt bundled with ParaView to use my own Qt?Thank you very much!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 14, 2025, 8:34am UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968/2 "2025-01-14T08:34:20Z")

</div>

> [@flipper](#):
>
> with my own Qt

Why not using Qt from vcpkg instead ?  
Or build you own ParaView instead ?

---

<div class="post-metadata">

### Author: ![flipper](https://discourse.paraview.org/user_avatar/discourse.paraview.org/flipper/32/15693_2.png) [@flipper](https://discourse.paraview.org/u/flipper)
#### Post date: [January 21, 2025, 3:09am UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968/3 "2025-01-21T03:09:13Z")

</div>

Thank you for your reply. I found that installing qt and paraview through vcpkg bundled too many unnecessary dependencies, and the installation took a very long time. Also, I’m currently building manually from the paraview source code. Is there a way to fully automate building ParaView into my existing Qt application? Thank you so much!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 21, 2025, 5:59am UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968/4 "2025-01-21T05:59:05Z")

</div>

> [@flipper](#):
>
> Also, I’m currently building manually from the paraview source code.

Then there is no Qt shipped with ParaView

> Is there a way to fully automate building ParaView into my existing Qt application?

Yes, absolutely. Just build ParaView against your existing Qt then create a ParaView branded application.

---

<div class="post-metadata">

### Author: ![flipper](https://discourse.paraview.org/user_avatar/discourse.paraview.org/flipper/32/15693_2.png) [@flipper](https://discourse.paraview.org/u/flipper)
#### Post date: [January 22, 2025, 2:02am UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968/5 "2025-01-22T02:02:06Z")

</div>

> [@mwestphal](#):
>
> Then there is no Qt shipped with ParaView

Yes, that’s fine.

> [@mwestphal](#):
>
> Yes, absolutely. Just build ParaView against your existing Qt then create a ParaView branded application.

I wanted to use Cmake’s FetchContent module to automatically process it, but failed.Could you please provide some examples for reference?

 ![微信截图_20250122095818](https://discourse.paraview.org/uploads/default/original/2X/d/dae774466aff5f088a667b8fc266041b7a20ec87.jpeg)

Thank you so much!

---

<div class="post-metadata">

### Author: ![mwestphal](https://discourse.paraview.org/user_avatar/discourse.paraview.org/mwestphal/32/17_2.png) [@mwestphal](https://discourse.paraview.org/u/mwestphal)
#### Post date: [January 22, 2025, 3:25pm UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968/6 "2025-01-22T15:25:37Z")

</div>

> [@flipper](#):
>
> I wanted to use Cmake’s FetchContent module to automatically process it, but failed.Could you please provide some examples for reference?

Before using FetchContent, you want to be able to use FindPackage first.

See an example here: [https://gitlab.kitware.com/paraview/paraview/-/tree/master/Examples/CustomApplications/Clone1?ref\_type=heads](https://gitlab.kitware.com/paraview/paraview/-/tree/master/Examples/CustomApplications/Clone1?ref_type=heads)

---

<div class="post-metadata">

### Author: ![flipper](https://discourse.paraview.org/user_avatar/discourse.paraview.org/flipper/32/15693_2.png) [@flipper](https://discourse.paraview.org/u/flipper)
#### Post date: [March 7, 2025, 8:20am UTC](https://discourse.paraview.org/t/how-to-set-the-qt-path-for-paraview-installed-via-vcpkg/15968/7 "2025-03-07T08:20:24Z")

</div>

Thank you very much!
