aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/bug_995.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-09-13 17:44:17 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2012-03-08 16:54:51 -0300
commitd86765e535f7b55caa231d90737194bad86cf50d (patch)
tree74ae5f3a226bbab4c661686c3f90d4a932bc5df1 /tests/QtDeclarative/bug_995.py
parent846759b324b147ce29f6390f110b0c136258df07 (diff)
Unit test for bug 995 - "QDeclarativeView.itemAt returns faulty reference. (leading to SEGFAULT)"
Diffstat (limited to 'tests/QtDeclarative/bug_995.py')
-rw-r--r--tests/QtDeclarative/bug_995.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/QtDeclarative/bug_995.py b/tests/QtDeclarative/bug_995.py
new file mode 100644
index 000000000..acdf148f2
--- /dev/null
+++ b/tests/QtDeclarative/bug_995.py
@@ -0,0 +1,13 @@
+from PySide.QtGui import *
+from PySide.QtDeclarative import *
+from helper import adjust_filename, UsesQApplication
+
+app = QApplication([])
+view = QDeclarativeView(adjust_filename('bug_995.qml', __file__))
+view.show()
+view.resize(200, 200)
+item = view.itemAt(100, 100)
+
+# it CAN NOT crash here
+print item
+