Details
-
Bug
-
Resolution: Unresolved
-
P4: Low
-
None
-
5.5.0
-
None
-
Qt 5.5.0 x32
Debian Linux 8 x32
Description
I have unexpected behavior with the code below:
TableView { anchors.fill: parent TableViewColumn { title: "column1"; role: "col1" } TableViewColumn { title: "column2"; role: "col2" } TableViewColumn { title: "column3"; role: "col3" } model: ListModel { ListElement { col1: "value1"; col2: "value2"; col3: "value3" } ListElement { col1: "value4"; col2: "value5"; col3: "value6" } ListElement { col1: "value7"; col2: "value8"; col3: "value9" } } Keys.onPressed: { if(event.isAutoRepeat) return; if(event.key === Qt.Key_Space) { console.log("Space pressed"); } } }
the output
qml: Space pressed
qml: Space pressed
means that Keys.onPressed was called twice instead of only one call.