path: root/src/widgets
diff options
authorAndy Shaw <>2017-10-19 09:36:15 +0200
committerLiang Qi <>2017-10-24 12:23:21 +0000
commit7944423bfaec48e5c7642a042bede1557b1beff2 (patch)
tree81e44aaa726ffdb2f5a7371fa2f6c7a240303c26 /src/widgets
parent7c5475f1c03a4b9d6c023bc7ff937e1fc2f62271 (diff)
Add clarifying documentation for QLayout::removeWidget()
Change-Id: I6c256c6c5cdfed6ceb45758d708fdc8f74d2939f Reviewed-by: Leena Miettinen <>
Diffstat (limited to 'src/widgets')
1 files changed, 2 insertions, 1 deletions
diff --git a/src/widgets/kernel/qlayout.cpp b/src/widgets/kernel/qlayout.cpp
index 1e455b0d64..f3db4f4e2d 100644
--- a/src/widgets/kernel/qlayout.cpp
+++ b/src/widgets/kernel/qlayout.cpp
@@ -1350,7 +1350,8 @@ QRect QLayout::alignmentRect(const QRect &r) const
Removes the widget \a widget from the layout. After this call, it
is the caller's responsibility to give the widget a reasonable
- geometry or to put the widget back into a layout.
+ geometry or to put the widget back into a layout or to explicitly
+ hide it if necessary.
\b{Note:} The ownership of \a widget remains the same as
when it was added.