变体图层父级冲突

默认变体中不包含的某个图层被两个或多个其他变体添加,且这些变体将其放置在不同的父图层之下。插件无法确定该图层应归属于何处,因此会将其(及其内部所有嵌套内容)从所有变体中移除。

在下面的示例中,Variant A 和Variant B 都包含一个名为button 的图层。然而,该图层在每个变体中的父图层不同,且在Default 变体中并不存在。因此,插件会删除该图层。

变体层父级冲突

若要保留该图层,请将其放置在所有包含该图层的变体中的同一图层之下,或者将其也添加到默认变体中。

另请参阅 “修复转换问题”和“变体”。

© 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.