feat(panel):根据qApp布局方向增加自动反向布局功能

This commit is contained in:
iaom 2024-07-24 17:35:42 +08:00
parent 790136d856
commit 35eda11552
1 changed files with 2 additions and 1 deletions

View File

@ -31,7 +31,8 @@ WidgetContainerItem {
id: containerItem
property int orientation: WidgetContainer.orientation
property bool isHorizontal: orientation === Types.Horizontal
LayoutMirroring.enabled: Qt.application.layoutDirection === Qt.RightToLeft
LayoutMirroring.childrenInherit: true;
onParentChanged: {
anchors.fill = parent
}