36 p.fillRect(0, 0, width(), height(), Qt::blue);
39int main(
int argc,
char *argv[])
41 QGuiApplication app(argc, argv);
42 QObject::connect(app.clipboard(), &QClipboard::changed, &app,
44 if (qApp->clipboard()->text() == QLatin1String(
"test")) {
45 QTimer::singleShot(100, qApp, &QCoreApplication::quit);
48 std::unique_ptr<Window> w(
new Window);
49 w->setGeometry(QRect(0, 0, 100, 200));