This Qt version is not compatible to your current Visual Studio???
-
I've used the VS2008 version with VS2010 SP1 since April, but I have compiled Qt. I also tried compiling Qt on my laptop but to no avail... perhaps I should try to compile another version, but the VS version is currently working fine under Win 7 64bit VS2010 SP1 - same as the laptop - and no, I do not have VS2008. Will try compiling the plain package tomorrow, hope it works, cuz I will be dropping the PC in about 2 weeks.
-
Zlatomir - I had the latest add-on, and I too suspected it might be a bug, because initially, the add-on accepted the Qt libraries even thou they did not work in VS, but after I removed the Qt entry and added it anew the add-in spewed out that incompatibility message I posted. It should be a bug considering the same VS+Qt combo runs on my desktop and only fails on the laptop.
-
Have you tried to redownload and reinstall the addin?
As far as i remember the version number didn't change when the bug was solved, so you can have "latest" 1.1.9 with the bug - and the one that can be downloaded now is still 1.1.9 with the bug solved.LE: Other option is to try with an older version of the add-in
-
OK, so, I downloaded the vanilla sources and compiled Qt all over again, and this time the add-in is working fine, accepting the Qt folder without version build error messages.
However, opening even the simplest projects still reveals problems. I get an error on the first line of my main.cpp file, which is #include <QApplication>, basically despite the working add-in and compiled libraries, I get errors on every <> include, missing methods and so on...
Any ideas?
-
Well, I am opening VS projects I have done on my PC and are currently working just fine on my PC with Qt 4.7.2. Is there a reason a project which works fine on my PC fails on my laptop, the only difference is on the PC I have Qt 4.7.2 for VC recompiled, on the laptop 4.7.4 everywhere compiled, everything else is identical? If so, what steps do I need to take to be able to migrate my projects to my laptop?
I have noticed when I create a new Qt project on the laptop it is all working fine, however, instead of #include <QApplication> the Qt project template uses #include <QtGui/QApplication>, I have tried modifying the includes on my existing projects in the same manner but to no avail... So current laptop config has no problem creating new projects but is not happy with already existing Qt projects which work just fine on my PC
-
-
It could be that the "Qt Project settings" "Properties" are assigned to a specific version of Qt in your project. When you transfer the project to another PC it will carry on these settings. When the very same version is not available on the new PC you got problems. If I remember correctly are the error messages pointing somehow to the right, but with a number of subprojects it becomes a little obscure.
You should check under in menu "Qt" the "Qt Project Settings" the version assigned. After using specific versions there, I have switched to "$(DefaultQtVersion)". It will use then the Default version assigned in "Qt Options" in menu "Qt".
This change cured version conflicts when moving source between different machines awith different Qt versions and target platforms.
-
Well, this is strange...
After I switched to DefaultQtVersion I was able to build an existing project and it seems to be running fine, and yet VS underscores the #include <QApplication> as an error, and when I hove over it, the tip says "error: cannot open source file "QApllication""
Anyway, thanks a lot, I am happy that it is finally working, my previous projects are not that important, basically exercises, since I am still learning, however it was kind of annoying to not be able to transfer existing projects and have them working.
-