I have a PySide gui that is used across dccs, Maya and Nuke, I’m looking to bringing it over to Substance. Whatever I try, I cannot change the size of widgets.
I have tried setFixedHeight(), setGeometry() and setMinimumHeight()
I can use the below code to alter them in Maya and Nuke, but substance seems to override it with its own custom values. Any ideas? Is Substance doing something differently from other dccs?
class MyWindow(QtWidgets.QMainWindow):
def __init__(self, parent=None):
super(MyWindow, self).__init__(parent)
self.setGeometry(100, 100, 400, 300) # (x, y, width, height)
# Create a line edit
self.line_edit = QtWidgets.QLineEdit("Yo!", self)
# self.line_edit.setGeometry(0, 0, 200, 80)
# self.line_edit.setFixedSize(200, 80)
self.line_edit.setMinimumHeight(200)
Thanks!