图层忽略自动布局

QML 渲染帧中的图层时,会将图层面板顶部的图层显示在最前面。该插件会将自动布局定位的图层转换为一个FlexboxLayout ,并将您设置为Ignore auto layout 的图层放置在其前方。 因此,这些图层都会移至最前,即使您将其放置在图层面板底部也不例外。该插件会报告每个最终位于 Figma 中原本位于其后方的图层前方的图层。如果该图层与画框大小相同,则会完全遮盖布局。

将图层从自动布局框中移出,并放入该框的父图层中,这样它就能在整个布局中保持原位。原本位于布局内两个图层之间的图层无法保持该位置,因为在布局框外,它要么位于整个布局的前面,要么位于后面。您还可以关闭 Use FlexboxLayout for auto layout 以使用固定定位代替FlexboxLayout ,并在代码中保留图层顺序。

选择“Ignore ”可将该问题从列表中隐藏。

另请参阅 “修复转换问题”和“应用自动布局”。

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.