Trouble with back-button an android
-
wrote on 24 Aug 2021, 09:43 last edited by
@J-Hilk kindly thank you for your prompt responses. You've been dancing with the Wizards🧙🦹♀️ (https://twitter.com/gridnetproject it's been all recorded LIVE on YouTube).
Will do 🙏
-
@Vega4 said in Trouble with back-button an android:
Time to file a bug-report?
possibly,
you should get at least a "good" answer ;)Don't forget to post a link here, so others can follow the report as well
wrote on 24 Aug 2021, 09:47 last edited by@J-Hilk Just noticed it's you who were the one who helped us with the custom full-screen support on android back in May https://twitter.com/gridnetproject/status/1389222481874014209... thank you yet again!
-
@J-Hilk Just noticed it's you who were the one who helped us with the custom full-screen support on android back in May https://twitter.com/gridnetproject/status/1389222481874014209... thank you yet again!
@Vega4 said in Trouble with back-button an android:
@J-Hilk Just noticed it's you who were the one who helped us with the custom full-screen support on android back in May https://twitter.com/gridnetproject/status/1389222481874014209... thank you yet again!
You're welcome :D
it helps me too, as I'm currently stuck in my own project, and changing the train of thought can help in those cases. -
wrote on 24 Aug 2021, 10:55 last edited by Vega4
Update: Seeing that system-menu related events work in presence of these flags when a QDialog gets opened we hoped that enforcing focus onto the main window once the Main window component gets rendered would help. We've wrapped everything around FocusScope and used forceActiveFocus() within Component.onCompleted(). but this didn't help either. Shortcuts do not get triggered as well.
Link to bug-report:here
It is a pitty I do not have QT's Source available since in assembly I can see that QGuiApplicationPrivate:processKeyEvent DOES process the event when back button is pressed at all times.
Seems like to get around this we would need to make a custom QT build one messing around with QGuiApplicationPrivate:processKeyEvent(), which by the way has lots of customized processing related to android's back_button just from the first looks on it. Can't override it (static method.. and obviously exotic stuff like https://en.wikipedia.org/wiki/Curiously_recurring_template_pattern aren't here at play , by design, of course ;d).
21/24