Visual Studio Add-In 1.2.0 for Qt 5 Released

Published Wednesday December 19th, 2012 | by

This week we released Qt 5.0 with Qt Creator integrated into the package. Today I have good news for those who prefer to use Visual Studio. We have now released new Visual Studio Add-In 1.2.0 for Qt 5. In addition to supporting Qt 5 it provides some additional goodies such as support to Visual Studio 2012.

The new Visual Studio Add-In 1.2.0 supports Visual Studio 2012, 2010 and 2008 for developing Qt 5 applications. It understands the new modularized structure of Qt 5, and includes the new documentation. Functionality and requirements are otherwise similar as with the previous Add-In, so you will need at least Visual Studio Professional to use it.

Highlights of Visual Studio Add-In 1.2.0 include:

  • Project creation wizards updated to follow Qt 5 module structure
  • Project settings form updated to follow Qt 5 module structure
  • Help documents updated to Qt 5.0
  • Support for Visual Studio 2012, 2010 and 2008
  • Parameter passing to lupdate fixed (QTVSADDINBUG-131)

You can find the detailed list of changes to the Visual Studio Add-In 1.2.0 here.

One thing to note is that there is no Qt 4 project creation wizards and project settings in the Qt 5 Visual Studio Add-In, and unfortunately it is currently not possible to use both the Qt 4 and Qt 5 Visual Studio Add-Ins simultaneously. We plan to release an updated version of the Qt 4 Add-In during Q1/13 to address this issue.

The new Visual Studio Add-In 1.2.0 is available for both commercial and open-source users. If you hold a valid commercial license, you can download the new Visual Studio Add-In from the Customer Portal. The open-source version can be downloaded from the Qt Project.

I hope you enjoy developing Qt 5 applications with Visual Studio. Please provide us with feedback either through the commercial support or via the Qt Project mailing lists.

PS. I changed the release date visible in the blog so that Qt 5.0.0 stays at the top. The real date of this release is 21st December 2012.

 

Did you like this? Share it:

Posted in Announcements, Compilers, desktop, Qt, Windows | Tags:

36 comments to Visual Studio Add-In 1.2.0 for Qt 5 Released

po says:

I installed it in both VS2010SP1 and VS2012u1, but can’t find the menu for the VS2012u1 version, it does not appear 8(

lo says:

I can see the Qt5 on vs2010u1′s menu after adding manually the addin’s folder but I cannot create a Qt5 project …

Ismo Haataja says:

Thanks for your comment. We need to check if vs-addin is somehow incompatible with the update 1 for VS2012. Meanwhile, can you explain how did you add manually the addin’s folder to get menu visible?

Scott says:

The previous VS plugin worked fine…But this one does not.

-Installed QT5.0.0. with the .exe installer using the default C:\QT\Qt5.0.0 path
-Installed the VS 1.2.0 addon
-Opened VS2010
-In the QT options I try to choose a version. But it won’t work!

The path: C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin does not work even though that’s where qmake.exe is located.

What’s the secret magic trick to setting up the Default Qt/Win Version path so this thing will work?

7 says:

I installed the add-in with VS2012, built Qt5 with VS2012 x64, it works perfectly in QtCreator with the Qt5/MSVC2012 kit, but it doesn’t seem to work all that well with VS2012.

First of all, for some reason, the LIB files need to be like Qt5Core5.lib or Qt5Gui5.lib, need an extra 5 behind the name of the libs that were built. Renaming the files does seem to fix this. This was enough to get a simple empty window application running.

But then I did some custom painting, or at least tried, but for some reasons I kept getting a “too few arguments” on the line:
QPainter painter(this);
which works with QtCreator and same built of Qt5, but does not in VS2012, just like many other types and methods, which leads me to believe Visual Studio 2012 support is not quite there yet, or possibly broken.

As for everyone before me, not being able to select the Qt5 directory – try pointing the add-in to the parent directory, not the one qmake is in, I tried that and it didn’t work, so I selected the root directory – in the case of the precompiled MSVC2010 binaries, it would be the C:\Qt\Qt5.0.0\5.0.0\msvc2010 instead of C:\Qt\Qt5.0.0\5.0.0\msvc2010\bin. The \bin is added automatically, so if you point to the bin folder yourself, it will go and look for a \bin\bin which obviously won’t work.

Ismo Haataja says:

Thanks for your report.

We have received some bug reports of invalid lib names, extra trailing 5 in the file name. This seems to happen with VS2012/x64. Reason for this behavior still being unresolved, could you open a bug report and tell more details of your development environment and options (configure parameters) you used to build your x64 Qt5. This could also help to solve the other issue you reported about VS complaining of types and methods. Or just reply to this comment if you prefer.

7 says:

I pretty much followed the instructions from the “Build Qt5 from git” article – open source, developer build, without webkit, using nmake, from a “VS2012 x64 Cross Tools Command Prompt”

7 says:

Also, form files cannot be open from Visual Studio, I get a popup titled “Not starting Designer” with text “***Couldn’t start Qt Designer!”

Ismo Haataja says:

This may happen if some DLL is not found, perhaps D3DCompiler_46.dll.

Try if designer.exe can be launched from command prompt under your x64 Qt5 build (in qtbase\bin). It gives you a System Error popup if something is missing.

7 says:

Good job, you nailed it, simply adding D3DCompiler_46.dll fixed it, now it runs straight from VS

Scott says:

^Thanks.
Using C:\Qt\Qt5.0.0\5.0.0\msvc2010 worked!

After creating a simple app with the wizard. The code had red intellisense squiggles all over the place. But it still compiled and ran.
I had to close VS and re-launch it for the .h files to get loaded and make the red stuff go away.
But I think this is a VS quirk. And not related to the Qt addon.

[...] 可惜可贺,Digia在末日第二天发布了QT5,同时面世的还有qt-vs-addin-1.2.0,让我们看看有哪些新玩意儿: [...]

DreamBack1991 says:

Thanks!

7 says:

Yet another possible bug to inform of – I don’t seem to be able to debug with MSVC2012 – all debug dlls are provided but it always fails to load the qwindowsd.dll, even though it is right there in the application path /platforms:

http://i49.tinypic.com/2mdlbsz.png

This applies only to debugging, there is no issue with running applications in release mode with qwindows.dll

Ismo Haataja says:

Have you solved this issue already?

To me debugging starts fine, I’m making a wild guess here now. It probably can’t find ANGLE library libEGLd.dll. Copy also that one to application path and give it a try.

Matt says:

Is there any version for folks like me who only have the Express versions of VS 2010/2012? I couldn’t find one on the ftp server or in the git repository. I’m not very familiar with git so maybe I’m just missing something–

7 says:

No, Express doesn’t support addons, use Qt Creator – it is really good, better than Visual Studio without VisualAssistX, which you cannot install on Express too.

7 says:

You can still use the VS compiler from Creator.

Michael says:

In Visual Studio 2012 i cannot debug QString,etc. Just shows member d instead of string value. This make debugging impossible.
The Add-in installed but i had to include search path for add-in/bin to have it registered under Update 1. Compiling went without problems.
What am i doing wrong ?

I’m having the same problem with QString etc. display – using 5.0.1 and VS2012 under x64.
Still looking for a solution.
I consider this a show-stopper that will prevent my organization from updating to Qt 5.

Lion says:

Any progress on this?
I desperately need a proper display of the QString value in the MSVC2012 debugger.
Please help me.

Lion says:

It seems that the newer version 1.2.1 in the git repo support this.
Would you (Digia or experts) please build and release the newest version for the rest of us?
Thanks in advance.

Ismo Haataja says:

Visual Studio Add-In RC v. 1.2.1 will be available for download tomorrow Mar-19 as opensource version, having this fix included.

Lion says:

Have you released the 1.2.1?
I’m desperately waiting for it.

Thanks.

AndresH says:

Hi,

I’m using VS 2008 and I compiled Qt 5.0.1 for x64. I’m currently using Qt 4.5.2 for all the projects I have, but I want to build one of them with Qt 5.0.1, for testing it. So, I added a new configuration for that with the VS Configuration Manager.

My concern is that you tell that the new version of the plugin doesn’t support Qt 4 and I need to be able to continue working with the older version until I’ll be sure that everything is stable. So, I tried to compile the project with the Qt 5 configuration (using my current plugin, 1.1.11), but the moc compiler generates files with the old Qt structure (I know the opposite should have been magic :) ), for example, #include instead of #include. Do you have any suggestion in order to workaround this while waiting for the new plugin version which supports also Qt4 ?

Cheers,

Andres

AndresH says:

Sorry, my last email was not showed correctly because of the brackets were interpreted as html code.

This is it again:

Hi,

I’m using VS 2008 and I compiled Qt 5.0.1 for x64. I’m currently using Qt 4.5.2 for all the projects I have, but I want to build one of them with Qt 5.0.1, for testing it. So, I added a new configuration for that with the VS Configuration Manager.

My concern is that you tell that the new version of the plugin doesn’t support Qt 4 and I need to be able to continue working with the older version until I’ll be sure that everything is stable. So, I tried to compile the project with the Qt 5 configuration (using my current plugin, 1.1.11), but the moc compiler generates files with the old Qt structure (I know the opposite should have been magic :) ), for example, #include [QtGui/QAction] instead of #include [QtWidget/QAction]. Do you have any suggestion in order to workaround this while waiting for the new plugin version which supports also Qt4 ?

Cheers,

Andres

[...] “health care approach. The official stressed This entry was posted in Uncategorized on February 12, 2013 by 鱼春雪. [...]

Tobias says:

Hi,

I try to compile the wizard project in VS2012 with QT5.01 msvc2010 & the addin – but I always get a linker error (LNK1104: cannot open file ‘QT5xxx.lib’ – with xxx depending on the order in the linker settings). But if I look at the command line in the output, the linker directory is correct & even manually adding it doesn’t work. Does anyone know how to resolve this?

Regards
Tobias

sahara108 says:

Sorry, but I can’t download Visual Studio Add-in 1.2.0 for Qt5 from your open source link. Plz provide another link to download this file!

Ismo Haataja says:

Release candidate of Qt5 Visual Studio Add-In 1.2.1 in now available for download here.

http://origin.releases.qt-project.org/digia_vsaddin/

Change list of modifications available here http://qt.gitorious.org/qt-labs/vstools/blobs/master/Qt4VS2003/Qt4VSAddin/Changes-1.2.1

Final version is scheduled to be released after Easter, first week of April.

success says:

I have installed this on visual studio service pack 1, And it installed quite fine and I can see 5 Qt project templates.

JohnZ says:

I have just installed QT5 and this plugin for my VS2010. However, now I can not start my VS2010 properly, it always prompts that the application can not start….

Note that my system is XP with VS2010 professional 32bit.

Any one can help?

Commenting closed.