QtDesigner & PySide: QTableWidget Not Available

I made a form in QtDesigner. This form is downloaded from PySide using the function

widget = loader.load(file, parent)

However, a QTableWidget (with objectNname buffer_table) is not available with

widget.buffer_table

If I use QPushButton, it works. How can I make this work. I would like to populate a table in Python.

This is the ui file I would like to use: http://pastebin.com/6PZFrvmr

EDIT: When I create a new table and try to load it, it works. However, if I put it in a QTabWidget, I cannot access it.

EDIT2:: widget.findChild(QWidget, "buffer_table")Searching and searching is a trick!

+4
source share
1 answer

, : widget.findChild(QWidget, "buffer_table") ( , ).

+2

All Articles