2009-09-28

Fix size of QWidget

To fix the size of QWidget:


//Label for image
QLabel * oLabelImageCenter = new QLabel;
oLabelImageCenter->setBackgroundRole(QPalette::Base);
oLabelImageCenter->setSizePolicy(QSizePolicy::Fixed, QSizePolicy::Fixed);
oLabelImageCenter->setScaledContents(true);
oLabelImageCenter->setFixedSize(200, 160);

1 comment: