QML QQuickText: Detected anchors on an item that is managed by a layout. This is undefined behavior;

Qt5.9.1迁移到Qt5.12.1上,一堆:QML QQuickText: Detected anchors on an item that is managed by a layout. This is undefined behavior;

修改方法:

anchors.top: parent.top ===》》》》》Layout.alignment: Qt.AlignTop
anchors.topMargin: 5    ===》》》》》Layout.topMargin: 5
posted @ 2019-02-28 11:27  blueridge  阅读(1146)  评论(0编辑  收藏  举报