Doc: Document the WA_ContentsMarginsRespectsSafeArea widget attribute

Task-number: QTBUG-68153
Change-Id: Ie4fa1a4e06ff5ee506e1d7788c245b7add776bd6
Reviewed-by: Andy Shaw <andy.shaw@qt.io>
This commit is contained in:
Venugopal Shivashankar 2018-05-14 14:03:39 +02:00
parent f86fbc4566
commit 57868b6081

View File

@ -1329,7 +1329,14 @@
\omitvalue WA_WState_WindowOpacitySet
\omitvalue WA_WState_AcceptedTouchBeginEvent
\omitvalue WA_MacNoShadow
\omitvalue WA_ContentsMarginsRespectsSafeArea
\value WA_ContentsMarginsRespectsSafeArea A QWidget respects the safe
area margins of a window by incorporating the margins into its contents'
margins by default. This means, that a QLayout will use the content area
of a widget for its layout, unless the Qt::WA_LayoutOnEntireRect attribute
is set. This along with a contents margin of 0 can be used on the actual
layout, to allow for example a background image to underlay the status bar and other
system areas on an iOS device, while still allowing child widgets of
that background to be inset based on the safe area.
*/
/*! \typedef Qt::HANDLE