Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-139363

[iOS] Missing handling of VoiceOver Z gesture

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.8, 6.9, 6.10
    • None
    • iOS/tvOS/watchOS

      On Android pressing the back button is handeled in QGuiApplicationPrivate::processKeyEvent and leads to a call of ApplicationWindow::onClosing where we can decide to accept the close or only go back and reject the close. iOS has no back button but VoiceOver provides a Z gesture to go back. So we should handle this in the same way as for Android. This would allow to use the same Code for both platforms:

      ApplicationWindow {
      	onClosing: pClose => {
      		if (mainPage && Qt.platform.os === "android") {
      			pClose.accepted = true;
      			return;
      		}
      
      		pClose.accepted = false;
      		executeBackAction();
      
      	}
      }
      

        For Gerrit Dashboard: QTBUG-139363
        # Subject Branch Project Status CR V

            vestbo Tor Arne Vestbø
            larss Lars Schmertmann
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There is 1 open Gerrit change