QSplitter height fixed
-
wrote on 8 Mar 2018, 10:41 last edited by
Hello!!
I am using a QSplitter to separate two sections of my software. Down section contains a QTableWidget which shows software notifications, so, its lines are increasing. What I want is not to allow stretching more than the height of the table.
How can I do this?
Thank you very much!
-
Hello!!
I am using a QSplitter to separate two sections of my software. Down section contains a QTableWidget which shows software notifications, so, its lines are increasing. What I want is not to allow stretching more than the height of the table.
How can I do this?
Thank you very much!
wrote on 8 Mar 2018, 10:50 last edited by@ivanicy said in QSplitter height fixed:
Down section contains a QTableWidget
Contains or is? how do you call
QSplitter::addWidget
? -
@ivanicy said in QSplitter height fixed:
Down section contains a QTableWidget
Contains or is? how do you call
QSplitter::addWidget
? -
wrote on 8 Mar 2018, 13:01 last edited by VRonin 3 Aug 2018, 13:01
You then have to
setMaximumHeight
of that group box calculating it from thesizeHint
of the widgets andconentMargins
andspacing
of the layout (or justsizeHint
of the groupbox)
1/4