add a top-level window widget
This commit is contained in:
parent
cc0a92618d
commit
be2dc2c9a9
5
main.cc
5
main.cc
@ -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();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user