View Full Version : QWidget cannot be created
Shien
30th May 2011, 19:53
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.
wysota
30th May 2011, 19:54
Do you have an instance of QApplication or QCoreApplication?
Shien
30th May 2011, 19:57
I used QtGui
I found the problem.
Santosh Reddy
31st May 2011, 01:02
Also check you .pro file has something like this
QT += core gui
stampede
31st May 2011, 07:57
As long as you don't have
QT -= gui
you don't have to worry about the gui module, it's included by default :)
wysota
31st May 2011, 08:34
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.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.