Author |
Topic |
|
Palli
New Member
4 Posts |
Posted - May 07 2014 : 05:37:03 AM
|
I'm working on a C++11 project with Qt. I have VS configured so that if I open the Qt .ui files in the solution explorer they open up in Qt Designer. If I use Alt + Shift + o to open these files they open up twice.
Kind Regards Palli
Visual Assist Info: VA_X.dll file version 10.8.2029.0 built 2014.02.24 DevEnv.exe version 11.0.61030.0 Premium msenv.dll version 11.0.61030.0 Comctl32.dll version 6.10.9600.17031 Windows 8 6.2 Build 9200 8 processors (x86-64, WOW64) Language info: 1252, 0x40f
Platform: Project defined Stable Includes: C:\\Program Files (x86)\\Windows Kits\\8.0\\Include\\winrt; C:\\Program Files (x86)\\Windows Kits\\8.0\\Include\\shared; C:\\Program Files (x86)\\Windows Kits\\8.0\\Include\\um; C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\atlmfc\\include; C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\include;
Other Includes:
Stable Source Directories: C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\crt\\src; C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\atlmfc\\src\\atl; C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\atlmfc\\src\\mfcm; C:\\Program Files (x86)\\Microsoft Visual Studio 11.0\\VC\\atlmfc\\src\\mfc;
IDE Info: Visual Studio Premium 2012 Version 11.0.61030.00 Update 4 |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - May 07 2014 : 8:20:13 PM
|
I would like to reproduce this issue here. However, I have never used QT integration with Visual Studio. I have a few question regarding this.
I have installed qt-opensource-windows-x86-msvc2012-5.2.1.exe but cannot find any setting in VS2012 related to QT, and it is not listed in the extension manager. I cannot create QT project, either. I created a new QT project, with QT creator, but it doesn't have a Visual Studio project file. Did I install the right file? |
|
|
Palli
New Member
4 Posts |
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - May 08 2014 : 8:05:55 PM
|
Thank you very much for the detailed explanation. After installing the addin, everything works like a charm.
Now about the problem: I have created a clean new Qt Application using the following steps: 1. File -> New -> Project... 2. Qt5 Projects -> Qt Application 3. The name of the project: qtapp1 (Certainly, I needed to specify qt version first. Which means selecting qmake.exe in the options dialog after clicking on the "Add" button)
Now, if I open the qtapp1.ui using the solution explorer, it opens the QT Designer app, which is a separate program, not a Visual Studio window. I closed this app. Now I open the Open File in Solution dialog, and open the same file (qtapp1.ui). The QT Designer app opens, once.
quote: I have VS configured so that if I open the Qt .ui files in the solution explorer they open up in Qt Designer. If I use Alt + Shift + o to open these files they open up twice.
1. What do you mean by "open up twice"? Is QT Designer opens twice, meaning 2 separate icon on the taskbar, OR two separate designs inside QT Designer? 2. I didn't need to configure anything. Did you do any additional steps? .ui files are shown in the dialog by default and opens the QT Designer for me.
When I open the .ui file again either via solution explorer or via the dialog, QT designer just pops in (gets focused), without starting another instance of the designer or another instance of the ui inside the designer. |
|
|
Palli
New Member
4 Posts |
Posted - May 09 2014 : 05:37:12 AM
|
1. Two instances of the Qt Designer open with the design inside it. One design in each designer.
2. At some point I had the .ui files open in the VS XML editor. Then I changed it back to the Qt Designer. I didn't remember what was the default. |
|
|
Palli
New Member
4 Posts |
Posted - May 09 2014 : 07:49:26 AM
|
I have found a fix.
When you right click on a .ui file in the solution explorer and go to "Open With" you can select what to open the file with and furthermore set what to open it with by default. Now for me there are two "Qt Designers" to choose from. The only difference between them is that one is removable but the other isn't. If I set the not removable one I get the aforementioned behaviour but not when I use the removable one.
Thanks for the help and sorry for wasting your time.
Regards Palli
|
|
|
accord
Whole Tomato Software
United Kingdom
3287 Posts |
Posted - May 09 2014 : 7:19:17 PM
|
Thank you for the follow-up. Maybe it will be useful if someone else run into this problem. |
|
|
|
Topic |
|