Sorry I cannot edit anymore.
Anyway, my main questions now is:
1) How do I make simple pro files, and then do : nmake \n qmake? in the folder with the pro file? And this will get rid of this bug?
2) What does qmake do, that my compiler (MingW) with DevC++ does not do?-- What is missing in my project that's not missing when people use qmake? I've tried using "moc.exe" to create a .moc file for my header file in my project. I tried including it in my project, and still same linker errors.
From what I understand, the linker errors are a result of not being able to find the QStaticMetaObject stuff that MOC makes when we macro Q_OBJECT, Because it declares classes and functions to be used, but doesn't implement it. So how can I implement it so that it will stop linker errors? (hopefully without using qmake)
EDIT: ok this time, I just took the whole moc file, and I just pasted it at the bottom of my cpp file : QTmain.cpp I removed the "include QTmain.h" from the moc code.
However, this is still a problem, because that means I have to make an moc file everytime and include that or paste it whatever everytime. Is there an easier way?
Bookmarks