Will QWidget::layoutDirection() ever return Qt::LayoutDirectionAuto ?
-
My question is about LayoutDirection.
To my understanding and observation of real code asking a widget for its direct via QWidget::layoutDirection() will always return LeftToRight or RightToLeft but never LayoutDirectionAuto.
If a widget has LayoutDirectionAuto it will ask its parent and return that value.
Is this assumption correct?
-
My question is about LayoutDirection.
To my understanding and observation of real code asking a widget for its direct via QWidget::layoutDirection() will always return LeftToRight or RightToLeft but never LayoutDirectionAuto.
If a widget has LayoutDirectionAuto it will ask its parent and return that value.
Is this assumption correct?
@buhtz said in Will QWidget::layoutDirection() ever return Qt::LayoutDirectionAuto ?:
If a widget has LayoutDirectionAuto it will ask its parent and return that value
Yes, is stated here https://doc.qt.io/qt-6/qt.html#LayoutDirection-enum
"When used in conjunction with widgets and layouts, it will imply to use the layout direction set on the parent widget or QApplication"