tommy
26th January 2008, 16:22
Is it possible to replace addStretch() with a line in such a way that it is not the emptiness that pushes widgets apart on the layout but rather a line?
This is my line:
QLabel *vDivider1 = new QLabel;
vDivider1->setFrameStyle(QFrame::HLine | QFrame::Sunken);
vDivider1->setLineWidth(2);
Can this be combined with layout->addStretch(); so that the line is stretched and pushes the widgets away from each other?
This is my line:
QLabel *vDivider1 = new QLabel;
vDivider1->setFrameStyle(QFrame::HLine | QFrame::Sunken);
vDivider1->setLineWidth(2);
Can this be combined with layout->addStretch(); so that the line is stretched and pushes the widgets away from each other?