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

void QWidget::raise (  )  [slot, inherited]

Raises this widget to the top of the parent widget's stack.

After this call the widget will be visually in front of any overlapping sibling widgets.

See also:
lower(), stackUnder()

Definition at line 7773 of file qwidget.cpp.

References QObject::children(), QWidget::create(), QList< T >::indexOf(), QWidget::isWindow(), QList< T >::move(), QWidget::parentWidget(), QCoreApplication::sendEvent(), QList< T >::size(), and QWidget::testAttribute().

Referenced by Q3ComboBox::popup(), qdesigner_internal::Layout::setup(), and Q3Table::updateGeometries().

    QWidget *p = parentWidget();
    int from;
    if (p && (from = p->d_func()->children.indexOf(this)) >= 0)
        p->d_func()->children.move(from, p->d_func()->children.size() - 1);
    if (!isWindow() && !testAttribute(Qt::WA_WState_Created) && parentWidget()->testAttribute(Qt::WA_WState_Created))
    if (testAttribute(Qt::WA_WState_Created))

    QEvent e(QEvent::ZOrderChange);
    QApplication::sendEvent(this, &e);

Generated by  Doxygen 1.6.0   Back to index