Hi Dauren!
There are currently two ways to show dialogs:
Either with the QML based InputDialog component, or by using a NativeDialog.
Unfortunately, both dialogs do not support disabling the back button handling at the moment. When showing a native dialog, the back button button is not handled by QML and always dismisses the dialog. The QML based Dialog handles the back button from within QML, so it would be possible to interrupt this by consuming the back pressed event before the Dialog can handle it.
Have you tried adding:
Connections {
target: getApplication()
onBackButtonPressedGlobally: {
console.log("back button pressed")
event.accepted = true // consume the event so other components, like the dialog don't handle it
}
}
to your QML code?
Best,
Günther