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

REG: QQuickWidget does not work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 6.0.0 Alpha
    • Fix Version/s: 6.0.0 Beta1
    • Component/s: Qt RHI, Quick: Widget
    • Labels:
      None
    • Platform/s:
      All
    • Commits:
      bb263b057df71144428fd1981eba7e505bf22b89 (qt/qtdeclarative/dev)

      Description

      QQuickWidget no longer works in Qt 6. This was ported to RHI at some point (as long as OpenGL was selected as the backend), but has since then regressed.

      I tested with the following code on Linux and Windows (QSG_RHI_BACKEND=opengl), and the content is not displayed on either.

      main.qml (added to resources):

      import QtQuick 2.12
      import QtQuick.Window 2.12
      
      Text {
          visible: true
          width: 640
          height: 480
          text: "foobar"
      }
      

      and

      main.cpp:

      #include <QtGui>
      #include <QtWidgets>
      #include <QtQuickWidgets>
      
      int main(int argc, char *argv[])
      {
          QApplication app(argc, argv);
          QQuickWidget qw(QUrl{"qrc:/main.qml"});
          qw.show();
          return app.exec();
      }
      

      On Linux, the window is completely black and on Windows, the window is completely black. On both platforms, the following error is displayed on the console:

      virtual void QPlatformBackingStore::composeAndFlush(QWindow*, const QRegion&, const QPoint&, QPlatformTextureList*, bool) no opengl support set
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              lagocs Laszlo Agocs
              Reporter:
              esabraha Eskil Abrahamsen Blomfeldt
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes