Very good!
It would be a good idea if you'd post it in the wiki.
Very good!
It would be a good idea if you'd post it in the wiki.
..or just write the code (.cpp, .h, .ui) in a folder and run
qmake -project
qmake -tp vc
and open the resulting .vcproj file with VS2005
Pete
Well, I just installed MSVC 2005 express, and compiled Qt 4.3.2 OS, all went smoothly (followed advice on this forum, wiki).
However, all though I manage to create a .vcproj project with:
qmake -project
qmake -tp vc
it doesn't moc, it only compiles "normally".
Am I right to assume that moc *should* be supported if all is correctly setup, or do open source users need to do this manually and add the mocs to the project?
(not Qt options in "tools->options".)
If this should be supported (I guess through the makefile), any idea what I might have been doing wrong?(points that I should check)
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
got it.
I forgot to add Q_OBJECT in my test classes....
So qmake didn't generate the moc rule.
Being impatient is not good...
==========================signature=============== ==================
S.O.L.I.D principles (use them!):
https://en.wikipedia.org/wiki/SOLID_...iented_design)
Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.
Hello,
I did all that stuff except moc, but I do this manually with qmake -project and qmake -tp vc. I have a linking problem. Linker could not find included libraries (qtmain.lib QtGui4.lib QtCore4.lib) because I don't have it in my qt\4.2.0\lib folder. I have *.a libraries. How can I make *.lib libraries for my Qt?
Thanks
You have to compile Qt for msvc because there're no binary packages for msvc available. You downloaded the binary package for mingw.
Search the forum archives - this was discussed very very often!
Bookmarks