简体   繁体   English

ApplicationWindow 页脚宽度受控

[英]ApplicationWindow footer width controlled

I'm using ApplicationWindow in main.qml , and using StackLayout to call all the qml windows and navigate through them as needed (eg pageOne, pageTwo, ...).我在main.qml中使用ApplicationWindow ,并使用StackLayout调用所有 qml windows 并根据需要导航...)

As shown in the image below, I created a vertical TabBar which is always present regardless of which qml window/page is called.如下图所示,我创建了一个垂直的 TabBar,无论调用哪个 qml 窗口/页面,它都始终存在。 I want to create a footer in ApplicationWindow to view data as app current version.我想在ApplicationWindow中创建一个页脚以将数据视为应用程序当前版本。 I want to control the footer width to be anchored left of TabBar, but the footer width fills the total width of the ApplicationWindow and pushing the TabBar up, causing undesired design.我想控制页脚宽度锚定在 TabBar 的左侧,但页脚宽度填充了ApplicationWindow的总宽度并将 TabBar 向上推,导致设计不理想。

Is there a way to cotrol ApplicationWindow footer width and anchoring it to TabBar?有没有办法控制ApplicationWindow页脚宽度并将其锚定到 TabBar? any suggestions are welcome.欢迎任何建议。

在此处输入图像描述


在此处输入图像描述

Just ignore ApplicationWindow's footer (if not set it will become zero height) and make your Footer part of the contentItem's layout.只需忽略 ApplicationWindow 的页脚(如果未设置,它将变为零高度)并使您的页脚成为 contentItem 布局的一部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM