summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_1138.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/QtUiTools/bug_1138.py')
-rw-r--r--tests/QtUiTools/bug_1138.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/QtUiTools/bug_1138.py b/tests/QtUiTools/bug_1138.py
new file mode 100644
index 0000000..98a2bc4
--- /dev/null
+++ b/tests/QtUiTools/bug_1138.py
@@ -0,0 +1,19 @@
+from PySide import QtCore, QtGui
+from PySide.QtUiTools import QUiLoader
+from helper import adjust_filename
+
+class MyQUiLoader(QUiLoader):
+ def __init__(self):
+ super(MyQUiLoader, self).__init__()
+
+ def createLayout(self, *args):
+ return super(MyQUiLoader, self).createLayout(*args)
+
+if __name__ == "__main__":
+ app = QtGui.QApplication([])
+
+ ui = MyQUiLoader().load(adjust_filename("bug_1138.ui", __file__))
+
+ label = QtGui.QLabel("test")
+ ui.verLayout.addWidget(label)
+ ui.show()