@PythonBeginner20

QML Column: Cannot specify top, bottom, verticalCenter, fill or centerIn anchors for items inside Column. Column will not function. Как исправить?

Здравствуйте, никак не могу исправить ошибку:
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
}

Ошибки со всего проекта

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.
  • Вопрос задан
  • 729 просмотров
Решения вопроса 1
Zifix
@Zifix Куратор тега Qt
Barbatum
Хорошо бы получить начальные знания английского языка.

Проблема не в том, как написаны колонки. Проблема в том, как позиционируются элементы внутри них.
Ответ написан
Комментировать
Пригласить эксперта
Ваш ответ на вопрос

Войдите, чтобы написать ответ

Войти через центр авторизации
Похожие вопросы
29 мар. 2024, в 09:44
20000 руб./за проект
29 мар. 2024, в 09:31
1000 руб./в час
29 мар. 2024, в 07:55
15000 руб./за проект