I have been working with Qt and Visual Studios 2008 for a while now. However, the other day after a reboot, the add-in to visual studios stopped working.
What’s working:
- templates and wizards.
I can add new items either ui, qrc, or even projects (although I
haven’t tried it) - Building existing projects – any files already setup to moc or uid or whatever, that works fine.
What’s not working:
- The Qt menu is not there. I can’t access the Qt project properties (usually found when right-clicking on a project)
-
Using the Qt editors such as Designer. When I double-click a UI file, I get the following error:
“Couldn’t connect to QtAppWrapper server Expected server address
127.0.0.1:12005 - Any automatic ‘stuff’ that VS used to do. Ex. When you add the Q_OBJECT macro, it would add your generated files to the project.
What I have tried/investigated:
I have tried rebooting, restarting VS, un-installing and re-installing the Qt Addin, upgrading to a new version of the Qt Addin. All to no avail.
There doesn’t appear to be any trouble-shooting help on the Qt web-site. I saw someone asked a similar question on the Qt forums, but there was no answer.
I was working with 1.1.7, I upgraded to 1.1.8 to see if that would help.
Any ideas? Thanks in advance for any help.
The problem appears to be with Visual Studios. It was unable to read the .addin file.
So if you look in the add-in manager you will notice that any add-ins using .addin files are not listed.
The actual problem is with the MSXML components installation. I had v4.0, but there could be issues with other versions as well.
For a fuller explanation see here.
So following their suggestion I uninstalled MSXML, (v4.0), and installed the 6.0 SP1 version that they linked to. At that point, all the .addin defined addins appeared in the add-in manager. At this point, you may have to re-enable it.
In my case, I had to un-install the Qt add-in, and re-install it before it worked completely.
I had the error “QtAppWrapper can’t be found in the installation directory”
But upon re-installation of the addin, everything starting working perfectly.