Many places in the UI where first click is lost and second click goes through. This is a Qt bug. Filing bug with Qt. Hoping for some sort of quick workaround from them. If not, we may need to move back to Qt 5.5 which works fine.
Simple repro for Qt folks (which took me two damn full days to whittle down):
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("Hello World")
Map {
anchors.fill: parent
plugin: Plugin { name: "osm" }
Button {
id: button1
x: 100
y: 100
text: "Button1"
onClicked: {
console.log("Button1 clicked")
button2.visible = true
}
}
Button {
id: button2
x: 200
y: 100
text: "Button1"
visible: false
onClicked: visible = false
}
}
}
该提问来源于开源项目:mavlink/qgroundcontrol