Hello:
I've been programming in Qt for a while now, but I still can't figure out how to do this and now I really need it.
Say you have two QTextEdits in a QMainWindow. Now the window gets resized, however the QTextEdits remain the same size, not occupying the window if it grows lager, and not fitting in it if it grows smaller.
I usually fixed this with a simple layout. However these are, as far as I know how to use them, tremendously restrictive. If I use a vertical layout for example both QTextEdits become the same size. However If I should happen to want the top one to be taller (bigger height) than the lower one, I can't do it. Not without breaking the layout. (I want to be left clear that I have tried to use spacers, but as the name implies these leave a space between both boxes and I want that space to be minimal)
So my question is, how do give widgets inside a window the proportion in size that I want, while maintaining the resizing functionality that gives using a layout.
Is there a simple way? Or should I just hand code all resizing events, doing the math so that the layout of the windows remains with the appropiate proportions and locations?
Thank you very much for any help.
Bookmarks