Solved Issue with function cloning data and inserting to the wrong table?
-
This post is deleted! -
Ok... so you are in fact trying to load several different widgets within the same which is not how you should do it. Each of your secondary ui files should be set on a different widget in order for them to be cleanly separated and usable.
-
Hi,
Where in your do you have a second table widget ?
-
This post is deleted! -
Ok... so you are in fact trying to load several different widgets within the same which is not how you should do it. Each of your secondary ui files should be set on a different widget in order for them to be cleanly separated and usable.
-
This post is deleted! -
This post is deleted! -
Rather than trying to load all of them within one widget. Have them each in their own. And then use them in your MainWindow like you would any standard widget.
-
Hi
Something like ( disclaimer, total python noob)class MyQWidget(QtWidgets.QWidget): def __init__(self): super(MyQWidget, self).__init__() uic.loadUi('basic.ui', self) # Load the .ui file
https://nitratine.net/blog/post/how-to-import-a-pyqt5-ui-file-in-a-python-gui/
Then create an instance of MyQWidget and insert it into your MainWindow, preferable using a layout
to hold both tables.