Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-20080 Qt 5 refactor
  3. QTBUG-20082

Create public QScreen (or similar) API, and complete QPlatformScreen API.

    XMLWordPrintable

Details

    • Sub-task
    • Resolution: Done
    • P1: Critical
    • 5.0.0
    • Other
    • None
    • c3da77798b876716ce038a30e9aa8517ec158c47 c66b7cf55b6913dcf33d49d4f6bf9db51ccf39a8

    Description

      The following factory functions in QPlatformIntegration probably need to move to QPlatformScreen:

      virtual QPixmapData *createPixmapData(QPixmapData::PixelType type) const = 0;
      virtual QPlatformWindow *createPlatformWindow(QWindow *window) const = 0;
      virtual QPlatformBackingStore *createPlatformBackingStore(QWindow *window) const = 0;
      virtual QPlatformGLContext *createPlatformGLContext(const QSurfaceFormat &format, QPlatformGLContext *share) const;

      There needs to be a public screen API for creating contexts / windows / etc on the correct screen, and for querying which screen a context / window / etc is valid for. It should probably be possible to move a QWindow between screens as well. Moving a QGuiGLContext between screens might be trickier, as it could invalidate share groups or force having to recreate the context, so it might be better to force the user to create a new QGuiGLContext for that screen.

      The public screen API needs to know and expose information about virtual desktops.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            rodal Samuel Rødal
            rodal Samuel Rødal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes