Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions

Splitter cannot resize widgets like I want



  • Hi,

    I have a hard time understanding how the sizeing of widgets works. I have a small example with some splitters and widgets and graphicviews. In this example, the horizontal splitter can not get the top widget small. I really don't understand why this is.

    I also really would like to know how I can give this top widget an initial height, so all it's child widgets also have an initial height.

    "GraphicsMainWindow.cpp":http://pastebin.com/xv5nFw9Q
    "GraphicsMainWindow.h":http://pastebin.com/EWpdHXNM
    "GraphicsMainWindow.ui":http://pastebin.com/rYw7ruVf

    W.


Log in to reply