Unit test for bug 995 - "QDeclarativeView.itemAt returns faulty reference. (leading to SEGFAULT)"

This commit is contained in:
Hugo Parente Lima 2011-09-13 17:44:17 -03:00
commit d86765e535
3 changed files with 26 additions and 0 deletions

View file

@ -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