When I run my project in console window I get this problem:
QWidget: Cannot create a QWidget when no GUI being used
What that supose to mean. I use evething like ussualy plus I have working example.
When I run my project in console window I get this problem:
QWidget: Cannot create a QWidget when no GUI being used
What that supose to mean. I use evething like ussualy plus I have working example.
I used QtGui
I found the problem.
Also check you .pro file has something like this
As long as you don't have
you don't have to worry about the gui module, it's included by defaultQT -= gui![]()
Furthermore removing the gui module will prevent QApplication from being instantiated and having the gui module and instantiating QCoreApplication instead of QApplication will not make gui work.
Bookmarks