That's right, this is the same behaviour like the preview in QtDesigner, but this is just loading the UI file without any context. For my application I need to compile the UI file to .py. Anyway, getting the scrollbars is no problem anymore, thanks to the pyqt docs:
http://www.riverbankcomputing.co.uk/...crollarea.html
... If the widget exceeds the size of the frame, the view can provide scroll bars so that the entire area of the child widget can be viewed. The child widget must be specified with setWidget().
So I did that and scrollbars show up, but the contents of that scrollArea now behave like they're disabled. In this case I have a scrollLayout that holds a frameLayout containing some groupBoxes containing checkbox widgets, just like this
When attaching the frameLayout to the scrollLayout via setWidget() the I cannot toggle the checkboxes anymore. If I skip setWidget() all works fine, but no scrollbars show up.Qt Code:
scrollArea | |_frameLayout | |_groupBox1 | | | |_checkBox1 | |_checkBox2 | |_groupBox1 | |_checkBox3 |_checkBox4To copy to clipboard, switch view to plain text mode
Any idea, what's going on here?
Many thanks
Robin
Bookmarks