The error is as follows:
loaded library “/opt/qtcreator-4.8.2/lib/Qt/plugins/platforms/ libqxcb.so “
qt.qpa.xcb : could not connect to display :0.0
qt.qpa.plugin : Could not load the Qt platform plugin “xcb” in “” even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: eglfs, linuxfb, minimal, minimalegl, offscreen, vnc, xcb.
The reason is: QT needs to display windows, but WSL does not have this function. It is necessary to install mobaxterm on Windows first. Open Ubuntu in mobaxterm, and then open QT in Ubuntu.
Read More:
- QT encountered in CentOS installation( qt.qpa.plugin : Could not load the Qt platform plugin “xcb” )
- Can not start, can not find QT pligins “windows” problem after installing QT vs environment 2021-06-13
- This application failed to start because it could not find or load the Qt platform plugin “windows”.
- This application failed to start because it could not find or load the QT platform
- The app failed to start because there is no Qt platform to initialize
- QT learning 3: configuration and testing of QT creator 2.4.1 development environment
- python: This application failed to stat could not find or load the Qt platform plugin “windows”
- QGIS uses qt4.6.3 to upgrade to the version compiled by qt4.8.3
- The crash of delete after QT removeitem in qgraphicsscene and the display residue
- Upgrading QT4 project to Qt5 project
- Qt5_ Various paths
- Solutions to various inexplicable errors after QT compilation
- QT + MySQL generates an EXE file and reports an error “driver not loaded”. Solution steps
- Qt development, using ODBC interface, query mysql, appear qsqlquery:: Value: not positioned on a valid record
- MySQL driver compiling method of QT under windows and solutions to abnormal errors
- Common errors and solutions of Qt development application under Ubuntu
- [Solved] qt5.9 + vs2015 32bit Error: “-1: error: LNK1158: Can not Run “rc.exe”
- [error reported] [Python] [Matplotlib] importerror: failed to import any QT binding
- The solution of using OpenGL’s Glu Library in qt5.2 under win7
- Installing qt5.8.0 error reporting during installation process