Is a BUG? Qt.Key_Tab in Keys.onPressed Triggered twice
QML and Qt Quick
3
Posts
2
Posters
2.5k
Views
1
Watching
-
wrote on 15 Aug 2011, 15:51 last edited by
code here:
@
import QtQuick 1.0Rectangle {
width: 360
height: 360focus: true Keys.onPressed: { if (event.key == Qt.Key_Tab) { console.log("pressed!"); // Triggered twice } //event.accepted = true; }
}
@
if use other key, then only trigger once
if accepted = true , then trigger once
but , this is a bug?
-
wrote on 17 Aug 2011, 02:14 last edited by
Hi,
It certainly looks like a bug -- I'd suggest filing a bugreport at https://bugreports.qt.nokia.com/ .
Regards,
Michael -
wrote on 17 Aug 2011, 04:42 last edited by
Thanks Michael
1/3