blob: acdf148f24236d5411402cdbc8843bef786811a6 (
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
|