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>
This commit is contained in:
parent
800fb4613c
commit
77a1654ad5
11 changed files with 112 additions and 39 deletions
18
tests/QtUiTools/bug_426.py
Normal file
18
tests/QtUiTools/bug_426.py
Normal file
|
|
@ -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_())
|
||||
Loading…
Add table
Add a link
Reference in a new issue