QSplitter::replaceWidget(): Add geometry related remark

The late geometry update on the widget has been confusing
some of our users.

Change-Id: I7f2600322be0a0c54fac3beb42065413a0693f74
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
bb10
Gabriel de Dietrich 2017-04-11 11:51:06 -07:00
parent ae6ef2e3ec
commit d5d31c64a4
1 changed files with 4 additions and 0 deletions

View File

@ -1145,6 +1145,10 @@ void QSplitter::insertWidget(int index, QWidget *widget)
\note The splitter takes ownership of \a widget and sets the parent of the
replaced widget to null.
\note Because \a widget gets \l{QWidget::setParent()}{reparented} into the splitter,
its \l{QWidget::}{geometry} may not be set right away, but only after \a widget will
receive the appropriate events.
\sa insertWidget(), indexOf()
*/
QWidget *QSplitter::replaceWidget(int index, QWidget *widget)