qt: invalid property name 'x' (M16) for button

后端 未结 3 1796
忘掉有多难
忘掉有多难 2021-02-08 04:06

I\'m using Qt 5.4.1 in QtCreator 3.3.1

I\'ve imported QtQuick.Controls 1.2 into my QML and added a series of buttons:

Rectangle {
    id: buttonBar
    x         


        
3条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-08 04:23

    It's a bug in the type info that is generated for controls for use of Qt Creator.

    To suppress this error, add comment:

    Button {
        // @disable-check M16
        x: 80
        y: 0
    }
    

提交回复
热议问题