Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.2.0
-
linux
-
08a32dff66a89fb517e86d3a2232407bd37fb715
Description
I have a Combobox . and if I want to set currentIndex to -1,
Current Behaviour with Qt Quick Controls using Qt5.2, stays at the same index .
Behaviour with Qt Quick Control using Qt5.1 , shows blank data , i.e. -1 Index.
The last behaviour is similar to widgets based combobox on Qt5.1 and Qt5.2.
import QtQuick 2.1 import QtQuick.Controls 1.0 import QtQuick.Layouts 1.0 import QtQuick.Window 2.0 ApplicationWindow { title: qsTr("ComboBox Test") width: 250 height: 100 ColumnLayout { Button { text: "reset currentIndex" onClicked: { combo.currentIndex = -1 } } ComboBox { id: combo model: ["abc", "def", "ghi"] onCurrentIndexChanged: { console.debug(currentIndex) } } } }