add a top-level window widget

This commit is contained in:
Josh Holtrop 2015-03-15 21:32:56 -04:00
parent cc0a92618d
commit be2dc2c9a9

View File

@ -1,9 +1,14 @@
#include <QtGui> #include <QtGui>
#include <QApplication> #include <QApplication>
#include <QWidget>
int main(int argc, char * argv[]) int main(int argc, char * argv[])
{ {
QApplication app(argc, argv); QApplication app(argc, argv);
QWidget window;
window.resize(600, 600);
window.show();
window.setWindowTitle("My Qt Application!");
return app.exec(); return app.exec();
} }