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:
Hugo Parente Lima 2011-07-04 18:29:46 -03:00
commit f3d69f65d1
6 changed files with 121 additions and 57 deletions

View 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()