I create a .pro file through " Qt->create Basic .pro File ..." in the qt-plugin for vs2005,when I use lupdate -vrebosse my.pro,the error ocurr:
can not crreate a qwidget when no gui is being used?
why?
I create a .pro file through " Qt->create Basic .pro File ..." in the qt-plugin for vs2005,when I use lupdate -vrebosse my.pro,the error ocurr:
can not crreate a qwidget when no gui is being used?
why?
Because you are using QCoreApplication and not QApplication.
If you are not making a GUI application it makes no sense to create a QWidget which is a GUI component.
==========================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.
thk u for your answer.
In my main function,I use
QAppliction a(argc,argv)
not
QCoreApplication a(argc,argv)
but problem still exists.
Are you not getting any compilation errors?.Post those. It would be helpful to see the scenario.
Can you post your my.pro file. Seems to have a strange setup.
Bookmarks