e_noni Posted November 9, 2019 Share Posted November 9, 2019 hi, i need some help with resizable widgets. it seems the window wont redraw the window canvas. i tried to resize the window with a event(second picture), but nothing worked. the .ui comes from QtDesigner. do i have to set some flags? is it possible at all? i appreciate your help, thx. nic. Quote Link to comment Share on other sites More sharing options...
Librarian Posted November 9, 2019 Share Posted November 9, 2019 Man thanx for examples on your site Quote Link to comment Share on other sites More sharing options...
e_noni Posted September 1, 2020 Author Share Posted September 1, 2020 (edited) for anyone who struggle with this. just put your qt designer widget (with correct layouts) in a extra boxlayout and houdini will resize your custom script stuff. example: class your_widget(QtWidgets.QWidget): def __init__(self, parent=None): QtWidgets.QWidget.__init__(self, parent) ui_file = QtCore.QFile("your_widget.ui") ui_file.open(QtCore.QFile.ReadOnly) self.your_widget = QtUiTools.QUiLoader().load(ui_file, parentWidget=self) layout = QtWidgets.QVBoxLayout() layout.setContentsMargins(0, 0, 0, 0) self.setLayout(layout) layout.addWidget(self.your_widget) Edited September 1, 2020 by e_noni Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.