As in the question, qt6 runs the quick program. If this error occurs, you only need to set the value of the environment variable QT_QUICK_BACKEND to “software”.
there are three methods:
Solution:
Method 1: add this environment variable to the system environment variable, as shown in the figure below
This method is applicable to the global
right-click this computer icon -> Attribute -> Advanced system settings -> Environment variable – > New
after setting, you need to restart the IDE and rebuild the project
note: this method is not recommended, otherwise running the program on a computer without setting this environment variable may fail
Method 2: by setting environment variables in QT program
This method is applicable to a single program
set the environment variables applicable to this program in the main function
qputenv("QT_QUICK_BACKEND","software");
Method 3: directly set the scenegraphbacken
This method applies to a single program
#include <QQuickWindow>
QQuickWindow::setSceneGraphBackend("software");
Read More:
- [Solved] Qt Error: qt.network.ssl: QSslSocket::connectToHostEncrypted: TLS initialization failed
- How to Solve UE Shader develop error
- Failed to create pod sandbox: rpc error: code = Unknown desc = [failed to set up sandbox container…
- [Solved] docker failed to solve: failed to solve with frontend dockerfile.v0: failed to create LLB definition
- [Solved] QT error: the packaged exe of Enigma virtual box reports an error cannot load library qt5core.dll
- [Solved] Qt UpdateLayeredWindowIndirect failed for ptDst Error
- [Solved] PySide2 Error: This application failed to start because no Qt platform plugin could be initialized
- [Solved] Tensorflow Error: failed to create cublas handle: CUBLAS_STATUS_ALLOC_FAILED
- Qt Error: Debug Assertion Failed [How to Solve]
- Error:(vlib-35) failed to create directory [How to Solve]
- MAC-XXL_JOB Error: Failed to create parent directories for [/data/applogs/xxl-job/xxl-job-admin.log
- [Solved] logback log format adjustment error: Failed to create converter for [%M] keyword
- [Solved] Error: failed to create deliver client: orderer client failed to connect to orderer.example.com:7050
- [Solved] Springboot project Create to start Error: APPLICATION FAILED TO START
- How to Solve QT and PCIe interactive loading setupapi.H error
- [Solved] ArcGIS Error: Failed to create the site. One or more server machines could not be stopped
- How to Solve QT error: LNK1158: Cannot Run “rc.exe”
- Android integration of iFLYTEK’s speech recognition (voice dictation) error message “Failed to create the object, please confirm that libmsc.so is placed correctly, and createUtility is called to initialize”
- [Solved] Qt Vtk wglMakeCurrent failed in MakeCurrent(), error: The handle is invalid.
- QT Error: ‘C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\BIN\\x86_amd64\\link.exe‘ failed