Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
6.0.0 Alpha
-
None
-
-
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
- resulted from
-
QTBUG-61475 Can not input Chinese in TextEdit when load qml in QQuickWidget
- Closed