P
P
PythonBeginner202019-03-29 23:06:59
Qt
PythonBeginner20, 2019-03-29 23:06:59

QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function. How to fix?

Hello, I can not fix the error in any way:

QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.

PairDisplay.qml
//Display module
Rectangle {
    width: 320
    height: 200
    id: designer__Selection

    Row {
        id: now
        width: 320
        height: 100

        Column {
            id: col1
            width: 20
            height: 100
//rectangles и т. п.
}

        Column {
            id: col2
            width: 20
            height: 100
//rectangles и т. п.
}

main.qml
Rectangle {
    id: rectangle
    width: 320
    height: 480
    color: "#424141"
    border.color: "#ffffff"
    signal categoryShow

    Button {
        id: button
        width: 320
        height: 70
        text: qsTr("text")
        anchors.top: parent.top
        anchors.topMargin: 0
        display: AbstractButton.TextOnly
    }
    
    DisplayModule {
        id: now_after
        height: 200
        anchors.top: button.bottom
        width: 320
        visible: true
}

Errors from the whole project

QML debugging is enabled. Only use this in a safe environment.
qrc:/PairDisplay.qml:119:9: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.
qrc:/PairDisplay.qml:97:9: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.
qrc:/PairDisplay.qml:50:9: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.
qrc:/PairDisplay.qml:29:9: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.
qrc:/PairDisplay.qml:24:5: QML Row: Cannot specify left, right, horizontalCenter, fill or centerIn anchors for items inside Row. Row will not function.
qrc:/Sparring/Time.qml:47:5: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.
qrc:/Sparring/Time.qml:26:5: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.
qrc:/PairDisplay.qml:119:9: QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
J
Jacob E, 2019-04-01
@PythonBeginner20

It would be nice to get a basic knowledge of the English language.
The problem is not how the columns are written. The problem is how the elements are positioned inside them.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question