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

Refactor QPlatformSurfaceCapture to allow activation at a later time.

XMLWordPrintable

    • Icon: Task Task
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.9
    • Multimedia
    • None
    • All

      Currently when using QScreenCapture's backend class, QPlatformSurfaceCapture, we require that the platform-specific implementation has to return a success value immediately. See the virtual function QPlatformSurfaceCapture::setActiveInternal(bool). Based on this, the QPlatformSurfaceCapture will determine whether the QScreenCapture is marked as active or not.

      On Android, it is not possible to determine whether screen capture can be started immediately. This is because Android will display a confirmation dialogue for every single capture request. So we can't know whether we were able to start the capture until the user has interacted with the UI.

      The QPlatformSurfaceCapture::setActiveInternal(bool) should be refactored so that platform-implementations are allowed to signal the "active" property at a later time. This will require some minor changes in all current platform implementations.

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

            qtmultimediateam Qt Multimedia Team
            npskalerud Nils Petter Skålerud
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes