I am working with a Win32 project in VS2010, and am trying to move it from being a console project to being a Qt windowing project. I have Qt Add-in 1.2.2 with Qt5.1.1.
I looked online for how to do this, and found a number of links that seemed helpful. Particularly this one (others seem to say the same thing):
http://stackoverflow.com/questions/2...o-a-qt-project
But when I completed the steps that Benjamin gave in his answer, and rebuilt, I got the error message:
error LNK1181: cannot open input file '\.obj'
Not a very helpful link error. I am not sure if Qt4VSv1.0 is correct, and have looked all over for information as to how this keyword is to be constructed. I assume that it should start with Qt5, but I'm not sure what the v1.0 refers to. Is that the add-in version?
I tried changing that to Qt5VSv1.2, but when I reloaded the project and right-clicked, the "Convert project to Qt Add-in project" option wasn't there, but a "Convert project to QMake generated project" was, and it was not highlighted so I couldn't select it. Changed it to Qt5VSv1.0 and got the same thing. Should I really be using the Qt4VSv1.0 keyword for Qt5.1.1 with add-in 1.2.2 on VS2010? I have no idea how to find out what this should be. And I don't really know what exactly this error is trying to tell me.
Also, Benjamin's instructions said that I should "add" the <keyword>Qt4VSv1.0</keyword> entry into the <PropertyGroup Label="Globals"> tag, so I had both the <keyword>Win32Proj</keyword> and the <keyword>Qt4VSv1.0</keyword> entries in there. I tried starting from scratch and taking out the Win32Proj entry, but that didn't make a difference.
Bookmarks