File indexing completed on 2022-11-23 10:29:24

0001 #include "kdebug.h"
0002 #include <QWidget>
0003 #include <QApplication>
0004 #include <QVariant>
0005 #include <QPen>
0006 
0007 int main(int argc, char **argv)
0008 {
0009     QApplication app(argc, argv);
0010     QWidget widget(nullptr);
0011     widget.setGeometry(45, 54, 120, 80);
0012     widget.show();
0013 
0014     kDebug() << &widget;
0015 
0016     QRect r(9, 12, 58, 234);
0017     QRegion reg(r);
0018     reg += QRect(1, 60, 200, 59);
0019     kDebug() << reg;
0020 
0021     QVariant v = QPen(Qt::red);
0022     kDebug() << "Variant: " << v;
0023 
0024     return 0;
0025 }