Unit test for bug 995 - "QDeclarativeView.itemAt returns faulty reference. (leading to SEGFAULT)"
This commit is contained in:
parent
846759b324
commit
d86765e535
3 changed files with 26 additions and 0 deletions
13
tests/QtDeclarative/bug_995.py
Normal file
13
tests/QtDeclarative/bug_995.py
Normal 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
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue