Sandbox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<code> | <code> | ||
#include <QApplication> | |||
#include <QPushButton> | |||
int main(int argc, char *argv[]) | int main(int argc, char *argv[]) | ||
{ | |||
QApplication app(argc, argv); | |||
QPushButton hello( | QPushButton hello("Hello world!"); | ||
hello.resize(100, 30); | |||
hello.show(); | hello.show(); | ||
return app.exec(); | |||
} | |||
</code> |
Revision as of 13:34, 25 February 2015
#include <QApplication>
#include <QPushButton>
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
QPushButton hello("Hello world!");
hello.resize(100, 30);
hello.show();
return app.exec();
}