Debian Codegraph @

examples/widgets/painting/affine/main.cpp

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
3
4 #include "xform.h"
5
6 #include <QApplication>
7
8 int main(int argc, char **argv)
9 {
10 QApplication app(argc, argv);
11
12 XFormWidget xformWidget(nullptr);
13 QStyle *arthurStyle = new ArthurStyle;
14 xformWidget.setStyle(arthurStyle);
15
16 const QList<QWidget *> widgets = xformWidget.findChildren<QWidget *>();
17 for (QWidget *w : widgets) {
18 w->setStyle(arthurStyle);
19 w->setAttribute(Qt::WA_AcceptTouchEvents);
20 }
21
22 xformWidget.show();
23
24 return app.exec();
25 }