QSplitter: setStretchFactor problem
Unsolved
General and Desktop
-
Hi!
Two vertical widgets with splitter between them.ui->splitter->setStretchFactor(0, 1); ui->splitter->setStretchFactor(1, 3);
This code works fine.
If I add, for example, QLabel to the second widget and make a vertical layout, that code works fine again.
But, if I also add QTextBrowser to the vertical layout of second widget , that code doesn't works.
All settings are default.
Whats wrong with the settings? -
@sitesv said in QSplitter: setStretchFactor problem:
Whats wrong with the settings?
The QTextBrowser is expanding by default
-
@Christian-Ehrlicher said in QSplitter: setStretchFactor problem:
The QTextBrowser is expanding by default
I changed QTextBrowser size policy to the "preffered"... Result is the same.