Gustavo Braga Posted March 20, 2017 Share Posted March 20, 2017 (edited) Hi, I´m trying to create a custom panel editor. Still in the early stages, but I would like to have my QToolBox has the same size of his parent widget the QScrollArea. I was thinking about implement resizeEvent() to resize the QToolBox (horizontally) when the QScrollArea changes size. But I´m always getting the wrong sizes from QScrollArea, even changing the size of the panel I´m receiving the (1,1,638,478) size from the viewport().geometry() or sizeHint(). I´m puzzled!! Thanks for helping! Edited March 20, 2017 by Gustavo Braga Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted March 21, 2017 Share Posted March 21, 2017 Seems like you have a layout problem somewhere. ScrollArea relies on its widget sizeHint(), read here: http://doc.qt.io/qt-4.8/qscrollarea.html#details 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.