Make sure we create an application before a QWidget.

Change-Id: I2e48f9ca59df62ac28d3cecdb6c2b741c59075de
Reviewed-by: João Abecasis <joao.abecasis@nokia.com>
This commit is contained in:
Stephen Kelly 2012-04-04 14:29:48 +02:00 committed by Qt by Nokia
parent 24afb1097d
commit e979012a2f
2 changed files with 2 additions and 0 deletions

View File

@ -50,6 +50,7 @@ MyWidget::MyWidget(QWidget *parent)
int main(int argc, char **argv)
{
QApplication app(argc, argv);
MyWidget myWidget;
return 0;
}

View File

@ -50,6 +50,7 @@ MyWidget::MyWidget(QWidget *parent)
int main(int argc, char **argv)
{
QApplication app(argc, argv);
MyWidget myWidget;
return 0;
}