diff options
author | Hugo Parente Lima <hugo.pl@gmail.com> | 2011-01-18 16:59:06 -0200 |
---|---|---|
committer | Hugo Parente Lima <hugo.pl@gmail.com> | 2012-03-08 16:51:47 -0300 |
commit | 4a2bfc9239c13272478185ce056e481d7aa1106b (patch) | |
tree | eafaeec4e27c5d172420a9e72dc456c45c03952a /tests/QtUiTools/bug_552.py | |
parent | e9d1dc38e2940a2b25e8eb1060a4945f2c20b04c (diff) |
Fix bug#552 - "Segmentation fault when using QUiLoader and QTabWidget"
Reviewer: Renato Araújo <renato.filho@openbossa.org>
Marcelo Lira <marcelo.lira@openbossa.org>
Diffstat (limited to 'tests/QtUiTools/bug_552.py')
-rw-r--r-- | tests/QtUiTools/bug_552.py | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/QtUiTools/bug_552.py b/tests/QtUiTools/bug_552.py new file mode 100644 index 000000000..6a93040a9 --- /dev/null +++ b/tests/QtUiTools/bug_552.py @@ -0,0 +1,21 @@ +from helper import adjust_filename +from PySide import QtGui, QtCore +from PySide.QtUiTools import QUiLoader + +class View_1(QtGui.QWidget): + + def __init__(self): + QtGui.QWidget.__init__(self) + loader = QUiLoader() + widget = loader.load(adjust_filename('bug_552.ui', __file__), self) + self.children = [] + for child in widget.findChildren(QtCore.QObject, None): + self.children.append(child) + self.t = widget.tabWidget + self.t.removeTab(0) + +app = QtGui.QApplication([]) +window = View_1() +window.show() + +# If it doesn't crash it works :-) |