How can I add Tab as UI file from qtdesigner converted file PYQT5?
-
I have a main windows which contain Add tab button and empty space.. I have a ui file converted to py file.. So I want to add that UI contents to empty space and when I add new tab it must create instance of UI file content in new tab. How can I do this ?
My Main File:
https://hastebin.com/kinocobire.rb
My UI file converted to PY:
-
I have a main windows which contain Add tab button and empty space.. I have a ui file converted to py file.. So I want to add that UI contents to empty space and when I add new tab it must create instance of UI file content in new tab. How can I do this ?
My Main File:
https://hastebin.com/kinocobire.rb
My UI file converted to PY:
-
How can i do it? I have done, If you observe I have done it in comments.. It gives me error from ui file.. "AttributeError: 'First' object has no attribute 'setCentralWidget' "
@aadil50 said in How can I add Tab as UI file from qtdesigner converted file PYQT5?:
setCentralWidget
QWidget has no central widget, only QMainWindow has one.