Re: qmake not invoking uic?
Aren't you forgetting a step?
I didn't use Qt from the cmd in a while, but the commands should be:
Code:
1) qmake -project
2) qmake NAME_OF_PRO.pro
3) make or nmake or mingw32-make
Re: qmake not invoking uic?
Quote:
This creates a makefile.
Does the make file contain an uic rule in it?
(Please post it).
Did you run nmake on it?
Quote:
For compilation i am using Visual Studio 10 with the QT plugin...
But the way you describe here is the console way, not VS + plugin way...
So, either really use VS and the plugin, then you only need to include the ui in to the project.
Or, post the make file.
As last resort on the console you can call uic explicitly on the your ui.
But that usually should not come to that.
Re: qmake not invoking uic?
Quote:
Originally Posted by
Regenlied
Regarding the description in the book executing qmake should create a ui_gotocelldialog.h by invoking the uic but his is not happening.
This is wrong. It is running qmake that gives you the makefile as you state. It is calling make (or nmake, jom, whatever) that will produce the ui_gotocelldialog.h before your source files are being compiled.
Re: qmake not invoking uic?
Quote:
Originally Posted by
franz
This is wrong. It is running qmake that gives you the makefile as you state. It is calling make (or nmake, jom, whatever) that will produce the ui_gotocelldialog.h before your source files are being compiled.
Those files (ui_name_bla.h and makefiles) are generated by qmake projectName.pro second step from my previous post, those are generated before running make (any of them)
LE: i just tested, i'm wrong about ui_file.h :o
Is as Franz said those are generated by running nmake
my bad, sorry
Re: qmake not invoking uic?
Thanks alot for the fast help. As you stated, I confused the steps which had to be done in the console/Visual Studio.
Re: qmake not invoking uic?
Quote:
Originally Posted by
Regenlied
Thanks alot for the fast help. As you stated, I confused the steps which had to be done in the console/Visual Studio.
I have met the same problem as yours and I still don't get it.
Would you explain the way you create the "ui_gotocelldialog.h" file to me in more detail? What's the reason why qmake cannot create this header file automatically?
Mnay thanks!
Re: qmake not invoking uic?
Quote:
and I still don't get it.
You don't get what? what is 'it'?
What did you try?
Show code.
Quote:
What's the reason why qmake cannot create this header file automatically?
The reason is that its not qmakes job, as simple as that.
qmake creates a make file.
The make file will call uic which will create ui_xxxxx.h out of an xxxxxxx.ui file - as stated in post #4.