Unsolved Run qt example is not warning and error but nothing is displayed (exception window)
-
Hello everbody,
I have a trouble with qt creator 4.14.1 when i run qt example is not warning and error but nothing is displayed (exception window white screen) ( below the image). I have already installed window 10 and installed qt creator .Example I run that is qmlchart and i use mingw 8.1 64 bit
So do i install missing file ? I guess issue belongs to graphics ( because nothing is display example color , rectangle, v.. v....) and i checked my computer is using directX 12
Could anyone please help me?
Thank you,
-
@longhoangdev Did you try other examples? Do those work?
-
@longhoangdev well, if you do not explicitly tell it to, Qml will still use OpenGL for qml rendering
IIRC, setting
qputenv("QSG_RHI", "1");
should remedy that...You can check if it helps
-
Hi @jsulm
I try to other example but screen is still white ( against qquickview but qwidget is worl normally)Thanks,
-
@J-Hilk
where can I find IIRC, setting qputenv("QSG_RHI", "1") ? I don't understand it -
@longhoangdev
More information here:
https://doc.qt.io/qt-5/qtquick-visualcanvas-scenegraph-renderer.html#rendering-via-the-qt-rendering-hardware-interfaceqputenv
is the Qt- way (notice theq
before putenv ?) of setting an environment variable -
@J-Hilk
Thank you , i will see it later and reply you as soon as possible when i try to doing it that it don't work