Esempio n. 1
0
void tst_QRasterWindow::create()
{
    QRasterWindow w;

    w.resize(640, 480);
    w.show();

    QTest::qWaitForWindowExposed(&w);
}
Esempio n. 2
0
int main(int argc, char ** argv)
{
   QGuiApplication app(argc, argv);
   QRasterWindow w;
   w.setTitle("windeployqt test application");
   const QRect availableGeometry = QGuiApplication::primaryScreen()->availableGeometry();
   w.resize(availableGeometry.size() / 4);
   w.show();
   QTimer::singleShot(200, &w, &QCoreApplication::quit);
   return app.exec();
}