Qt — это кросс-платформенный фреймворк, с помощью которого можно создавать программное обеспечение, которое будет компилироваться в исполняемые файлы для различных операционных систем без изменения или с минимальным изменением кода. Первоначально платформа Qt создавалась для работы с кодом на языке программирования C++, однако вскоре появились наборы расширений для программирования на PHP, Python, Ruby и Java.
Являясь объектно-ориентированной средой программирования рассчитанной на мультиплатформенную разработку, Qt распространяется вместе с классами и библиотеками необходимыми для разработки элементов интерфейса в различных платформах, поддержки работы с сетью и подключения к базам данных, что делает его пригодным «из коробки» для создания большинства прикладных программ. Как и у большинства современных сред разработки и фреймворков, при необходимости функциональность Qt можно значительно расширить с помощью подключаемых плагинов и виджетов.
Фактически после выхода версии 4.5.0, которая получила интегрированный модуль Qt Creator, фреймворк стал представлять собой полноценную мультиплатформенную среду разработки в которой можно полноценно писать код, разрабатывать графические интерфейсы режиме визуального редактора с помощью модуля Qt Designer, разрабатывать кросс-платформенную справку воспользовавшись Qt Assistant и локализировать своё приложение на множество языков с благодаря модулю Qt Linguist.
Как и в случае с большинством свободно распространяемых программ, вы можете скачать исходный код Qt с официального сайта и собственноручно собрать нужные модули с персональными пожеланиями, однако в большинстве случае достаточно скачать Qt в виде автоматизированного установщика и просто выбрать, какие именно компоненты вам необходимы
Большинство модулей фреймворка Qt распространяются по лицензии LGPL v3 и GPL v3 с открытым исходным кодомLGPL v3 и GPL v3 с открытым исходным кодом и его можно скачивать и использовать бесплатно. При этом нужно иметь в виду, что лицензия некоторых модулей требует, чтобы создаваемый вами продукт так же распространялся под лицензией совместимой с GPL. Подробности лицензирования можно уточнить на официальном сайте фреймворка.
Question
Issue: How to fix «Application failed to start because no Qt platform plugin could be initialized» error in Windows?
Hello. Recently, after a Windows update, I was unable to get OneDrive to work. Whenever my PC boots, I receive an error “Application failed to start because no Qt platform plugin could be initialized.” Any advice on how to deal with this issue? Thanks in advance.
Solved Answer
Windows operating system consists of many components – some are already pre-installed while others need to be implemented manually. For example, Node.js is one of the third-party components you would see on almost any Windows computer.
Qt is a C++-based[1] framework that is designed to create applications on Windows, Android, Linux,[2] and other platforms. While it is not a programming language on its own, apps that are based on it need to have the framework installed on their machines to be able to run. Unfortunately, these dependencies can create certain issues due to one reason or another.
When something goes wrong with the Qt platform, users may receive the “Application failed to start because no Qt platform plugin could be initialized” error.
Several applications could be affected by this error, including games such as Apex Legends,[3] standalone components (Dllhost), or commonly-used apps as OneDrive. The latter resides in every Windows computer and is an extremely useful app commonly used for system/file backups or additional storage for user files.
Here’s the full message that users receive upon encountering the error (the error message text may vary in some instances):
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: minimal, offscreen, windows.
While it may seem like enabling or installing the Qt platform would fix the “Application failed to start because no Qt platform plugin could be initialized” error, it is not the case. Reinstalling the app that is having difficulties detecting the plugin might help, however.
Unfortunately, that is not always possible, as users reported that they then received the “Can’t be found” error while trying to do so. The reason for this being is that a newer version of the app may be already present on the device, hence uninstallation is not possible. There is a way around it.
In some cases, the reasons for the error could be unrelated to the ones mentioned above. For example, system file corruption might also cause this error, so we recommend you try running a scan with FortectMac Washing Machine X9 repair software that could fix underlying Windows issues automatically. Otherwise, proceed with the below methods that should help you solve this error for good.
Method 1. Copy relevant folder to a different location
Fix it now!
Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.
Method 2. Check system files for damage
Fix it now!
Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.
- Type in cmd in Windows search
- Right-click on Command Prompt and select Run as administrator
- Here, type sfc /scannow and press Enter
- Wait till the scan completes and restart your machine
- If the SFC has returned an error saying it was unable to repair damaged files, run the following commands, pressing Enter each time:
DISM /Online /Cleanup-Image /CheckHealth
DISM /Online /Cleanup-Image /ScanHealth
DISM /Online /Cleanup-Image /RestoreHealth
Method 3. Try Clean Boot
Fix it now!
Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.
- Type msconfig in Windows search, hit Enter
- Go to Services tab
- Check the Hide all Microsoft services checkbox and select Disable all
- Go to Startup tab and pick Open Task Manager
- Here, right-click on every entry and select Disable and close the Task Manager
- Go to Boot tab, tick Safe Boot and select Apply + OK.
Once booted back into Windows, try running the app you were having problems with. If that fixes your problem, it means that there is a third-party application that is at fault. In order to fix the “Application failed to start because no Qt platform plugin could be initialized” error, you should uninstall all recently installed applications and see if that solves your problem in normal mode.
Method 4. Reinstall the application in question
Fix it now!
Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.
You should try uninstalling the app you are having troubles with and then installing it anew. If you are dealing with OneDrive, you should do the following:
- Press Win + R on your keyboard
- In the Run dialog, copy and paste the following:
%userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe - Go through the installation steps and restart your PC
- If Windows can’t find the file specified, you should download the setup file from the official website [direct link].
If this method does not work and you are presented with an error, proceed with the method below and then repeat this step.
Method 5. Uninstall the problematic app via Command Prompt
Fix it now!
Fix it now!
To repair damaged system, you have to purchase the licensed version of Fortect Mac Washing Machine X9.
Uninstalling a program that does not want to uninstall might be difficult, although it is possible via PowerShell, as you can launch it as an administrator. Keep in mind that the below example is for the OneDrive application, and the command would differ depending on the app name and its location.
- Open Command Prompt as administrator as explained above
- Copy and paste the following commands, pressing Enter after each:
taskkill /f /im OneDrive.exe
%SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall - Note: if you are using 32-bit Windows system use the following command to uninstall OneDrive instead:
%SystemRoot%\System32\OneDriveSetup.exe /uninstall - This should force-uninstall the app.
Repair your Errors automatically
ugetfix.com team is trying to do its best to help users find the best solutions for eliminating their errors. If you don’t want to struggle with manual repair techniques, please use the automatic software. All recommended products have been tested and approved by our professionals. Tools that you can use to fix your error are listed bellow:
do it now!
Download Fix
Happiness
Guarantee
do it now!
Download Fix
Happiness
Guarantee
Compatible with Microsoft Windows
Compatible with OS X
Still having problems?
If you failed to fix your error using FortectMac Washing Machine X9, reach our support team for help. Please, let us know all details that you think we should know about your problem.
Fortect — a patented specialized Windows repair program. It will diagnose your damaged PC. It will scan all System Files, DLLs and Registry Keys that have been damaged by security threats.Mac Washing Machine X9 — a patented specialized Mac OS X repair program. It will diagnose your damaged computer. It will scan all System Files and Registry Keys that have been damaged by security threats.
This patented repair process uses a database of 25 million components that can replace any damaged or missing file on user’s computer.
To repair damaged system, you have to purchase the licensed version of Fortect malware removal tool.To repair damaged system, you have to purchase the licensed version of Mac Washing Machine X9 malware removal tool.
A VPN is crucial when it comes to user privacy. Online trackers such as cookies can not only be used by social media platforms and other websites but also your Internet Service Provider and the government. Even if you apply the most secure settings via your web browser, you can still be tracked via apps that are connected to the internet. Besides, privacy-focused browsers like Tor is are not an optimal choice due to diminished connection speeds. The best solution for your ultimate privacy is Private Internet Access – be anonymous and secure online.
Data recovery software is one of the options that could help you recover your files. Once you delete a file, it does not vanish into thin air – it remains on your system as long as no new data is written on top of it. Data Recovery Pro is recovery software that searchers for working copies of deleted files within your hard drive. By using the tool, you can prevent loss of valuable documents, school work, personal pictures, and other crucial files.
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
2
branches
1
tag
Code
-
Use Git or checkout with SVN using the web URL.
-
Open with GitHub Desktop
-
Download ZIP
Latest commit
Files
Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
QtPlugin
Qt platform plugin and style. Exports windows to KDE-style global menus via D-Bus.
Dependencies
On Alpine Linux:
apk add qt5-qtbase-dev libqtxdg-dev extra-cmake-modules libdbusmenu-qt-dev xcb-util-wm-dev cmake musl-dev alpine-sdk clang
On Arch Linux:
sudo pacman -S gcc extra-cmake-modules qt5-base qt5-tools qt5-x11extras libqtxdg libdbusmenu-qt5 libxcb
On FreeBSD:
sudo pkg install -y curl zip cmake pkgconf libfm qt5-core qt5-x11extras qt5-widgets qt5-qmake qt5-buildtools qt5-linguisttools kf5-extra-cmake-modules libqtxdg libxcb libdbusmenu-qt5 kf5-kwindowsystem
Build
mkdir build
cd build
cmake ..
make
sudo make install
Usage
export QT_QPA_PLATFORMTHEME=panda
export QT_STYLE_OVERRIDE=fusion # Optional if you want another Qt style, e.g., the Qt default one
(start Qt applciation)
License
panda-qt5-plugins is licensed under GPLv3.
We recommend you use the Qt Online Installer for first time installations and the Qt Maintenance Tool for changes to a current install.
- Qt6 source packages
- 5.15.x source packages
- 5.12.x Offline Installers
- Qt Creator
- Other downloads
- Pre-releases
Qt6 Source Packages
Qt 6.5.3 Source Packages:
The source code is available:
- For Windows users as a single zip file (1.2 G) (Info)
- For Linux/macOS users as a tar.xz file (761 MB) (Info)
You can get split source packages from here. Or visit the repository at code.qt.io.
Older Qt Versions
All older versions of Qt are available in the archive.
Qt 5.15.x Source Packages
The source code is available:
- For Windows users as a single zip file (962 MB) (Info)
- For Linux/macOS users as a tar.xz file (560 MB) (Info)
You can get split source packages from here. Or visit the repository at code.qt.io.
Pre-releases
Looking for Qt 6.6 RC? Packages can be downloaded from here.
I got this exact error on linux.
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.
Aborted (core dumped)
First, defining this environment variable before starting qtcreator causes more debug to be printed out:
export QT_DEBUG_PLUGINS=1
And then in the debug it said this when trying to start qtcreator from the commandline on ubuntu 18.04:
Cannot load library /home/myuser/Qt/Tools/QtCreator/lib/Qt/plugins/platforms/libqxcb.so: (libxkbcommon-x11.so.0: cannot open shared object file: No such file or directory)
Note that it cannot find libxkbcommon-x11, so the fix was this:
sudo apt-get install libxkbcommon-x11-dev
export PATH=$PATH:~/Qt/Tools/QtCreator/bin
Now qtcreator starts.