Hello,
in a default Qt Desktop application, I set the size policy of the centralWidget to expanding, hoping it would expand to the QMainWindow size. It does not. How can I achieve such expansion?
Also, layouts take care of their items sizes according to the size policies. A layout does not resize itself according to its items size, or do they? I put a layout inside a QFrame and sized the QFrame hoping the layout takes all the space inside the frame. The QFrame has its size policy set to minimum and its minimum size set to my target size.
Am I tackling this task right or is a different approach meant to be taken in Qt?
↧