Suppose I have a gridlayout of three columns. I want each column to have custom width. Seems to me that the width of the columns are fixed automatically.
How can I do this in the qt designer?
Suppose I have a gridlayout of three columns. I want each column to have custom width. Seems to me that the width of the columns are fixed automatically.
How can I do this in the qt designer?
You can do it in the QT Designer (GUI)
Result: 1st column 200px, 2nd column 100px, 3rd column 100px,
© 2022 - 2024 — McMap. All rights reserved.
setColumnMinimumWidth()
, but You also must manipulatesetSizePolicy
for each element in column as QLabel, QGroupBox etc, because policy determines how behavior must be particular object in column. Look Here doc.qt.io/qt-4.8/qsizepolicy.html also probably find some here #4553804 – Subatomic