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:
parent
24afb1097d
commit
e979012a2f
@ -50,6 +50,7 @@ MyWidget::MyWidget(QWidget *parent)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
MyWidget myWidget;
|
||||
return 0;
|
||||
}
|
||||
|
@ -50,6 +50,7 @@ MyWidget::MyWidget(QWidget *parent)
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
QApplication app(argc, argv);
|
||||
MyWidget myWidget;
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user