Fix bug 913 - "Widgets inside QTabWidget are not exported as members of the containing widget"
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org>
Renato Araújo <renato.filho@openbossa.org>
This commit is contained in:
parent
7d364bde65
commit
f3d69f65d1
6 changed files with 121 additions and 57 deletions
23
tests/QtUiTools/bug_913.py
Normal file
23
tests/QtUiTools/bug_913.py
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/usr/bin/env python
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
import sys
|
||||
import unittest
|
||||
from helper import adjust_filename
|
||||
|
||||
from PySide.QtCore import *
|
||||
from PySide.QtGui import *
|
||||
from PySide.QtUiTools import *
|
||||
|
||||
class TestBug913 (unittest.TestCase):
|
||||
|
||||
def testIt(self):
|
||||
app = QApplication([])
|
||||
|
||||
loader = QUiLoader()
|
||||
widget = loader.load(adjust_filename('bug_913.ui', __file__))
|
||||
widget.tabWidget.currentIndex() # direct child is available as member
|
||||
widget.le_first.setText('foo') # child of QTabWidget must also be available!
|
||||
|
||||
if __name__ == '__main__':
|
||||
unittest.main()
|
||||
Loading…
Add table
Add a link
Reference in a new issue