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

int QStackedWidget::addWidget ( QWidget widget  ) 

Appends the given widget to this QStackedWidget and returns the index position.

If the QStackedWidget is empty before this function is called, widget becomes the current widget.

See also:
insertWidget(), removeWidget(), setCurrentWidget()

Definition at line 165 of file qstackedwidget.cpp.

    return d_func()->layout->addWidget(widget);

Generated by  Doxygen 1.6.0   Back to index