blob: e44f50e52d01c66dabecce2122f2a9779b29902b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
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)
|