Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Files Open Twice

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Palli 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
6   L A T E S T    R E P L I E S    (Newest First)
accord 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.
Palli 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
Palli 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.
accord 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 Posted - May 08 2014 : 05:03:45 AM
What you installed is the Qt framework for windows. You also need to install Visual Studio Add-in 1.2.2 for Qt5. Go to http://qt-project.org/downloads click "Show Download" and on the bottom of the page you have "Other downloads".

After writing all that I realized I could just add a link ;)
http://download.qt-project.org/official_releases/vsaddin/qt-vs-addin-1.2.2-opensource.exe

It is normal not to have Qt listed in the extension manager, but you should get Qt related templates, QT5 on your toolbar and Qt Add-in 1.2.2 should be listed in the Add-in Manager.

FYI, I'm using Qt5.1.1 which has Qt Creator 3.0.0 an Qt Designer 5.1.1 . I can't find a link to the 5.1.1 versions online installer but you can find the regular one here:

https://download.qt-project.org/official_releases/qt/5.1/5.1.1/

but I doubt this is important.
accord 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?

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000