When I use QtDesigner and pyuic5 for PyQt5 GUI applications it always uses imports like this:
from PyQt5 import QtCore, QtWidgets
class Ui_TabWidget(object):
def setupUi(self, TabWidget):
TabWidget.setObjectName("TabWidget")
TabWidget.resize(950, 188)
self.tab = QtWidgets.QWidget()
self.tab.setObjectName("tab")
...
Is it possible to configure QtDesigner or pyuic5 to have it like this:
from PyQt5.QtWidgets import QWidget
I don't want to import everything from QtWidgets to keep my compiled binaries smaller. However, if I edit the file by myself it will lose all the changes if I change the GUI via QtDesigner in the future.