PDA

View Full Version : scaling of widgets in verticalLayout



Surfman19
9th June 2015, 01:11
Hello,

i have a QMainWindow with a QVBoxLayout and added QwtPlot and QPlainTextEdit.

at the moment both the QwtPlot and QPlainTextEdit have the same size...

how can i make QwtPlot larger than the QwtPlot?

i tried to play with the stretch factor... but this did not change the layout of the widgets... any idea what im doing wrong?


ui->verticalLayout->setStretchFactor(ui->plainTextEdit, 1);
ui->verticalLayout->setStretchFactor(plot, 2);


Thanks,
A

Surfman19
9th June 2015, 15:36
already solved with:


ui->gridLayout->setRowStretch(0, 1);
ui->gridLayout->setRowStretch(1, 3);