Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Anchoring to Window
How do I take a control say... a splitter and anchor it to the sides of the window?
So when I resize the window, the items that are in the splitter.. resize accordingly?
I see sizePolicy, minimumSize, maximumSize and geometry but not sure which one it is I should be looking at.
msx_br last edited by
Please explain with more datails.
I have a QTextEdit with a QLineEdit within a Splitter.
I want both QTextEdit and QLineEdit to span the width of the client window even if the window is resized.
Ah figured it out.
Right-click on the main window
I chose 'Lay out in Grid'
This anchored my splitter to all 4 corners so when i resize the window, the QTextEdit and QLineEdit resize properly too!