aboutsummaryrefslogtreecommitdiffstats
path: root/tests/QtDeclarative/bug_557.py
blob: c78aaf15dfcd56cd48b6f5a1089a47df5905f4b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from PySide.QtCore import *
from PySide.QtGui import *
from PySide.QtDeclarative import *

import sys

app = QApplication(sys.argv)

engine = QDeclarativeEngine()
component = QDeclarativeComponent(engine)

# This should segfault if the QDeclarativeComponent has not QDeclarativeEngine
component.loadUrl(QUrl.fromLocalFile('foo.qml'))