Results 1 to 3 of 3

Thread: How to set custom Qt plugin installation path when compiling with Visual Studio C++

  1. #1
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Smile How to set custom Qt plugin installation path when compiling with Visual Studio C++

    I created a new plugin in Qt Creator under Visual Studio C++ 2022 Community (having installed Qt VS Tools extension). Now I would like it to be placed automatically in the path C:\Qt\6.5.0\msvc2019_64\plugins\designer. How can I tell it from project properties in Visual Studio C++ 2022 Community ?
    Last edited by giorgik; 27th April 2023 at 12:35.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,238
    Thanks
    303
    Thanked 865 Times in 852 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: How to set custom Qt plugin installation path when compiling with Visual Studio C

    I created a new plugin in Qt Creator under Visual Studio C++ 2022 Community
    Qt Creator and Visual Studio are two different, independent development environments. Which one are you using for your development?

    I do not use the VS Community edition, but I am pretty sure the settings will be similar if not the same as the commercial edition. In Visual Studio, right click the name of your project in the Solution Explorer pane. Select Properties. When the Property Pages dialog appears, click the General category from the Configuration Properties tree. Be sure you have selected the Release configuration at the top of the dialog, then change the "Output Directory" setting to "C:\Qt\6.5.0\msvc2019_64\plugins\designer". Click OK, then save your project. See the attached screenshot.

    VisualStudio.jpg
    Last edited by d_stranz; 27th April 2023 at 16:31.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Apr 2010
    Location
    Italia
    Posts
    149
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to set custom Qt plugin installation path when compiling with Visual Studio C

    Quote Originally Posted by d_stranz View Post
    Qt Creator and Visual Studio are two different, independent development environments. Which one are you using for your development?

    I do not use the VS Community edition, but I am pretty sure the settings will be similar if not the same as the commercial edition. In Visual Studio, right click the name of your project in the Solution Explorer pane. Select Properties. When the Property Pages dialog appears, click the General category from the Configuration Properties tree. Be sure you have selected the Release configuration at the top of the dialog, then change the "Output Directory" setting to "C:\Qt\6.5.0\msvc2019_64\plugins\designer". Click OK, then save your project. See the attached screenshot.

    VisualStudio.jpg
    Thanks you

Similar Threads

  1. Replies: 2
    Last Post: 8th June 2012, 15:34
  2. Replies: 1
    Last Post: 26th March 2011, 10:32
  3. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 16:46
  4. Replies: 1
    Last Post: 30th July 2010, 13:41
  5. Can't add build path to Visual Studio Add-In
    By laserbeak43 in forum Newbie
    Replies: 0
    Last Post: 31st May 2009, 08:41

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.