Solved QTabWidget is empty in GUI, but it contains tabs
-
I encountered a problem in Qt5.
So i have got a *.ui file, with the following structure:QWidget QTabWidget QWidget (tab) QPushButton QWidget (tab) QVBoxLayout QTableView QWidget (tab)
I have got an other *.ui file which contains an empty QTabWidget.
I would like to set this empty QTabWidget properly.
I got the pointer of QTabWidget from the above structure, and set it to the empty QTabWidget.
It was successfully seemingly, but not show any tab. I invokedcount()
andwidget(int)
method of QTabWidget and it contained the right tabs.Why can not I see the content QTabWidget on the GUI?
What is the problem?
How can i add all children of QTabWidget from the above structure to he empty QTabWidget?
Thanks in advance.
-
Hi
I think you need to show the code as this- I got the pointer of QTabWidget from the above structure, and set it to the empty QTabWidget.
Sounds completely wrong :)
Also you are not allowed to clone/copy QWidgets
so Im not sure what you are trying.If you want the same tabs in both tables,
You should just add to both.
If you are trying anything like copy/clone it wont work.