我有一个问题,因为添加一个按钮并尝试编辑后它会自动消失...我试图在按钮上添加一些背景但无济于事 . 确切地说,我的意思是名为“按钮”的按钮

第二个问题是为什么偶尔会突然出现一个错误:“第1行:快速qmulation层崩溃”最有趣的是它足以再次打开同一个文件并且错误可以消失

import QtQuick.Window 2.10
import QtQuick.Controls.Material 2.0
import QtQuick.Layouts 1.3
import Qt.labs.settings 1.0
import Qt.labs.folderlistmodel 2.11
import QtQuick.Controls.Universal 2.0
import QtQuick.Shapes 1.11
import QtPositioning 5.4
import QtGraphicalEffects 1.0
import QtQuick.Controls.Imagine 2.3
import QtQuick.Templates 2.4
import Qt.labs.location 5.11

Item 
{
id: item1
width: 1000
height: 700

Rectangle {
    id: rectangle
    color: "#3d3d3d"
    anchors.rightMargin: 0
    anchors.bottomMargin: 0
    anchors.leftMargin: 0
    anchors.topMargin: 0
    anchors.fill: parent

    ColumnLayout {
        id: columnLayout
        x: 846
        y: 66
        width: 146
        height: 626
        transformOrigin: Item.Center

        ListView {
            id: listView
            clip: true
            width: 110
            height: 160
            flickDeceleration: 1600
            boundsBehavior: Flickable.DragAndOvershootBounds
            contentHeight: 160
            Layout.fillHeight: true
            flickableDirection: Flickable.VerticalFlick
            spacing: 5
            interactive: true
            Layout.fillWidth: true
            contentWidth: 0
            Layout.alignment: Qt.AlignHCenter | Qt.AlignTop
            delegate: Item {
                x: 5
                width: 80
                height: 40
                Row {
                    id: row1
                    Image {
                        id: image
                        width: 25
                        height: 25
                        source: "online.png"
                    }

                    Text {
                        text: name
                        anchors.verticalCenter: parent.verticalCenter
                        font.bold: true
                        color: "white"
                    }
                    spacing: 10
                }
            }
            model: ListModel {
                ListElement {
                    name: "Grey"
                    colorCode: "grey"
                }


            }
        }
    }

    Label {
        id: label
        x: 846
        y: 8
        width: 138
        height: 32
        color: "#2d84ff"
        text: "Online Clients"
        lineHeight: 0.6
        font.family: "Tahoma"
        fontSizeMode: Text.HorizontalFit
        clip: false
        font.letterSpacing: 0
        font.wordSpacing: 0
        styleColor: "#404040"
        style: Text.Normal
        font.weight: Font.ExtraBold
        font.capitalization: Font.Capitalize
        wrapMode: Text.WrapAnywhere
        font.pointSize: 21
        verticalAlignment: Text.AlignVCenter
        horizontalAlignment: Text.AlignHCenter
    }

    ToolSeparator {
        id: toolSeparator
        x: 839
        y: 8
        width: 1
        height: 684
        visible: true
        contentItem: Rectangle {
            color: "#1df489"
        }
    }
    ToolSeparator {
        id: toolSeparator1
        x: 904
        y: -18
        width: 1
        height: 130
        rotation: 90
        scale: 1
        clip: false
        contentItem: Rectangle {
            color: "#1df489"
        }
        visible: true
    }

    Button {
        id: button
        x: 318
        y: 253
        width: 76
        height: 21
        text: qsTr("Button")
    }

    ComboBox {
        id: comboBox
        x: 639
        y: 9
        width: 173
        height: 31
    }
}
}

除非它与背景完全不同?