summaryrefslogtreecommitdiffstats
path: root/tests/manual/repaint/task141091/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/repaint/task141091/main.cpp')
-rw-r--r--tests/manual/repaint/task141091/main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/manual/repaint/task141091/main.cpp b/tests/manual/repaint/task141091/main.cpp
new file mode 100644
index 0000000..0adeea2
--- /dev/null
+++ b/tests/manual/repaint/task141091/main.cpp
@@ -0,0 +1,22 @@
+#include <QtGui>
+#include <QDebug>
+
+class MyWidget : public QWidget
+{
+public:
+ MyWidget() : QWidget() {
+
+
+ setAttribute(Qt::WA_OpaquePaintEvent);
+ setAttribute(Qt::WA_StaticContents); }
+protected:
+ void paintEvent(QPaintEvent *e) { qDebug() << e->rect(); }
+};
+
+int main(int argc, char **argv)
+{
+ QApplication a(argc, argv);
+ MyWidget w;
+ w.show();
+ return a.exec();
+} \ No newline at end of file