Logo Search packages:      
Sourcecode: qt4-x11 version File versions  Download package

void QWidget::setFixedWidth ( int  w  )  [inherited]

Sets both the minimum and maximum width of the widget to w without changing the heights. Provided for convenience.

See also:
sizeHint() minimumSize() maximumSize() setFixedSize()

Definition at line 3081 of file qwidget.cpp.

References QWidget::height(), QWidget::maximumSize, and QWidget::minimumSize.

Referenced by QFontComboBox::event().

    uint expl = d->extra->explicitMinSize | Qt::Horizontal;
    setMinimumSize(w, minimumSize().height());
    setMaximumSize(w, maximumSize().height());
    d->extra->explicitMinSize = expl;

Generated by  Doxygen 1.6.0   Back to index