QML ComboBox只能工作一次

时间:2018-06-13 08:02:46

标签: combobox model qml

使用QT 5.10,我的ComboBox只能选择一次。在第一次选择后,它将保持关闭状态,无法进一步选择。这是标准行为还是错误?如何再次“解锁”ComboBox?

import QtQuick 2.9
import QtQuick.Window 2.2
import QtQuick.Controls 1.4

Window {
    visible: true
    width: 640
    height: 480
    title: qsTr("Hello World")

    ComboBox {
        width: 100
        model: ["One", "Two", "Three"]
    }
}

程序启动后: enter image description here

选择: enter image description here

锁定: enter image description here

0 个答案:

没有答案