Unsolved splitter setStretchFactor doesnot work in stackedwidget
-
I put a tree widget in the left and a stacked widget in the right, and use horizntal splitter for layout
the following code is used for initialization
ui->splitter->setStretchFactor(0,4);
ui->splitter->setStretchFactor(1,6);
but it doesnot work, the width of tree widget and of stacked widget is not 4:6 -
@johnson54 said in splitter setStretchFactor doesnot work in stackedwidget:
horizntal splitter
I guess you mean vertical as you said you put widgets in the left and right sides?
So, it should be 2:3, what is it now?