summaryrefslogtreecommitdiffstats
path: root/tests/QtUiTools/bug_426.py
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-10-22 17:28:43 -0200
committerHugo Parente Lima <hugo.pl@gmail.com>2010-10-22 19:16:51 -0200
commit77a1654ad587241d3c14bafa2c0deae53e1599ee (patch)
tree1b2dece9fe99a5a956420e03229d0872916a9a05 /tests/QtUiTools/bug_426.py
parent800fb4613cb61dbff33750ec0ab4b18ca3369c6c (diff)
downloadpyside-77a1654ad587241d3c14bafa2c0deae53e1599ee.tar.gz
pyside-77a1654ad587241d3c14bafa2c0deae53e1599ee.tar.xz
pyside-77a1654ad587241d3c14bafa2c0deae53e1599ee.zip
Fix bugs 430, 426, 429, 394, 433.
These bugs are about QApplication instance being destroyed before some QObject. Reviewer: Luciano Wolf <luciano.wolf@openbossa.org> Renato Ara├║jo <renato.filho@openbossa.org>
Diffstat (limited to 'tests/QtUiTools/bug_426.py')
-rw-r--r--tests/QtUiTools/bug_426.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/QtUiTools/bug_426.py b/tests/QtUiTools/bug_426.py
new file mode 100644
index 0000000..11e2631
--- /dev/null
+++ b/tests/QtUiTools/bug_426.py
@@ -0,0 +1,18 @@
+import sys
+import os
+from PySide import QtCore, QtGui
+from PySide.QtUiTools import QUiLoader
+
+class Window(object):
+ def __init__(self):
+ loader = QUiLoader()
+ filePath = os.path.join(os.path.dirname(__file__), 'bug_426.ui')
+ self.widget = loader.load(filePath)
+ self.group = QtGui.QActionGroup(self.widget)
+ self.widget.show()
+ QtCore.QTimer.singleShot(0, self.widget.close)
+
+if __name__ == "__main__":
+ app = QtGui.QApplication(sys.argv)
+ win = Window()
+ sys.exit(app.exec_())