QWidget::setResizeable(0)
Verfasst: 10. Juli 2010 10:59
Code: Alles auswählen
QWidget::setResizeable(0)Danke
Code: Alles auswählen
QWidget::setResizeable(0)Code: Alles auswählen
void QWidget::setFixedSize ( const QSize & s )
Sets both the minimum and maximum sizes of the widget to s, thereby preventing it from ever growing or shrinking.
This will override the default size constraints set by QLayout.
Alternatively, if you want the widget to have a fixed size based on its contents, you can call QLayout::setSizeConstraint(QLayout::SetFixedSize);
See also maximumSize and minimuCode: Alles auswählen
QLayout::setSizeConstraint(QLayout::SetFixedSize); Code: Alles auswählen
// HBoxAll ist die alle weiteren Layoutboxen beinhaltende HBox
setLayout(HBoxAll);
setFixedSize(HBoxAll->minimumSize());