Qt platform plugin windows ошибка как исправить windows 10

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.

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.

How to fix "Application failed to start because no Qt platform plugin could be initialized" error in Windows?

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 RestoroMac 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 Restoro 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 Restoro 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

    Run SFC scan

  • 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 Restoro 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.

    Use Clean Boot

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 Restoro 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%AppDataLocalMicrosoftOneDriveUpdateOneDriveSetup.exe
  • Go through the installation steps and restart your PC

    Reinstall OneDrive

  • 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 Restoro 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%SysWOW64OneDriveSetup.exe /uninstall

    Force uninstall OneDrive

  • Note: if you are using 32-bit Windows system use the following command to uninstall OneDrive instead:
    %SystemRoot%System32OneDriveSetup.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 RestoroMac Washing Machine X9, reach our support team for help. Please, let us know all details that you think we should know about your problem.

Restoro – 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 Restoro 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.

Вопрос

Проблема: как исправить ошибку «Не удалось запустить приложение из-за того, что не удалось инициализировать подключаемый модуль платформы Qt» в Windows?

Привет. Недавно после обновления Windows мне не удалось заставить OneDrive работать. Каждый раз, когда мой компьютер загружается, я получаю сообщение об ошибке «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt». Есть какие-нибудь советы, как решить эту проблему? Заранее спасибо.

Решенный ответ

Операционная система Windows состоит из множества компонентов – некоторые из них уже предустановлены, а другие необходимо реализовать вручную. Например, Node.js является одним из сторонних компонентов, которые вы можете увидеть практически на любом компьютере с Windows.

Qt основан на C ++[1] фреймворк, предназначенный для создания приложений на Windows, Android, Linux,[2] и другие платформы. Хотя это не язык программирования сам по себе, приложения, основанные на нем, должны иметь установленную платформу на своих машинах, чтобы иметь возможность работать. К сожалению, эти зависимости могут создавать определенные проблемы по той или иной причине.

Когда что-то пойдет не так с платформой Qt, пользователи могут получить сообщение об ошибке «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt».

Эта ошибка может затронуть несколько приложений, включая такие игры, как Apex Legends,[3] автономные компоненты (Dllhost) или часто используемые приложения, такие как OneDrive. Последний находится на каждом компьютере с Windows и является чрезвычайно полезным приложением, обычно используемым для резервного копирования системы / файлов или дополнительного хранилища для пользовательских файлов.

Вот полное сообщение, которое пользователи получают при обнаружении ошибки (текст сообщения об ошибке может отличаться в некоторых случаях):

Это приложение не удалось запустить, потому что не удалось инициализировать подключаемый модуль платформы Qt. Переустановка приложения может решить проблему.

Доступные плагины платформы: минимальные, закадровые, окна.

Хотя может показаться, что включение или установка платформы Qt исправит ошибку «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt», это не так. Однако переустановка приложения, у которого возникают проблемы с обнаружением плагина, может помочь.

Как исправить ошибку «Не удалось запустить приложение, потому что не удалось инициализировать плагин платформы Qt» в Windows?

К сожалению, это не всегда возможно, поскольку пользователи сообщали, что при попытке сделать это они получили ошибку «Не удается найти». Причина этого в том, что более новая версия приложения может уже присутствовать на устройстве, поэтому удаление невозможно. Есть способ обойти это.

В некоторых случаях причины ошибки могут быть не связаны с упомянутыми выше. Например, повреждение системного файла также может вызвать эту ошибку, поэтому мы рекомендуем попробовать запустить сканирование с помощью ReimageСтиральная машина Mac X9 программное обеспечение для ремонта, которое может автоматически устранять основные проблемы Windows. В противном случае используйте следующие методы, которые должны помочь вам навсегда решить эту ошибку.

Способ 1. Скопируйте соответствующую папку в другое место

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

Способ 2. Проверить системные файлы на наличие повреждений

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

  • Введите cmd в поиске Windows
  • Щелкните правой кнопкой мыши на Командная строка и выберите Запустить от имени администратора
  • Здесь введите sfc / scannow и нажмите ВходитьЗапустить сканирование SFC
  • Дождитесь завершения сканирования и начать сначала ваша машина
  • Если SFC вернула ошибка заявив, что не удалось восстановить поврежденные файлы, выполните следующие команды, нажав Входить каждый раз:
    DISM / Онлайн / Очистка-Образ / CheckHealth
    DISM / Онлайн / Очистка-Изображение / ScanHealth
    DISM / Онлайн / Очистка-Образ / RestoreHealth

Способ 3. Попробуйте чистую загрузку

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

  • Тип msconfig в поиске Windows нажмите Входить
  • Перейти к Услуги вкладка
  • Проверить Скрыть все службы Microsoft флажок и выберите Отключить все
  • Перейти к Запускать вкладка и выберите Открыть диспетчер задач
  • Здесь щелкните правой кнопкой мыши каждую запись и выберите Запрещать и закройте диспетчер задач
  • Перейти к Ботинок вкладка, отметьте Безопасная загрузка и выберите Применить + ОК.Использовать чистую загрузку

После загрузки обратно в Windows попробуйте запустить приложение, с которым у вас возникли проблемы. Если это решит вашу проблему, значит, виновато стороннее приложение. Чтобы исправить ошибку «Не удалось запустить приложение, потому что не удалось инициализировать подключаемый модуль платформы Qt», вам следует удалить все недавно установленные приложения и посмотреть, решит ли это вашу проблему в обычном режиме.

Способ 4. Переустановите указанное приложение

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

Вам следует попробовать удалить приложение, с которым у вас возникли проблемы, а затем установить его заново. Если вы имеете дело с OneDrive, вам следует сделать следующее:

  • Нажмите Win + R на твоей клавиатуре
  • в Бегать диалоговое окно, скопируйте и вставьте следующее:
    % userprofile% AppData Local Microsoft OneDrive Update OneDriveSetup.exe
  • Пройдите этапы установки и начать сначала ваш компьютерПереустановите OneDrive
  • Если Windows не может найти указанный файл, вам следует загрузить установочный файл с официального сайта [Прямая ссылка].

Если этот метод не работает и вы получаете сообщение об ошибке, перейдите к приведенному ниже методу, а затем повторите этот шаг.

Метод 5. Удалите проблемное приложение через командную строку

Исправить это сейчас!Исправить это сейчас!

Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage Reimage.

Удаление программы, которая не хочет удаляться, может быть трудным, хотя это возможно через PowerShell, так как вы можете запустить ее от имени администратора. Имейте в виду, что приведенный ниже пример относится к приложению OneDrive, и команда будет отличаться в зависимости от имени приложения и его местоположения.

  • Открытым Командная строка от имени администратора как объяснено выше
  • Скопируйте и вставьте следующие команды, нажав Входить после каждого:
    taskkill / f / im OneDrive.exe
    % SystemRoot% SysWOW64 OneDriveSetup.exe / удалитьПринудительно удалить OneDrive
  • Примечание: если вы используете 32-битная система Windows вместо этого используйте следующую команду для удаления OneDrive:
    % SystemRoot% System32 OneDriveSetup.exe / удалить
  • Это должно принудительно удалить приложение.

Исправляйте ошибки автоматически

Команда ugetfix.com делает все возможное, чтобы помочь пользователям найти лучшие решения для устранения их ошибок. Если вы не хотите бороться с методами ручного ремонта, используйте автоматическое программное обеспечение. Все рекомендованные продукты были протестированы и одобрены нашими профессионалами. Инструменты, которые можно использовать для исправления ошибки, перечислены ниже:

Предложение

сделай это сейчас!

Скачать Fix
Счастье
Гарантия

сделай это сейчас!

Скачать Fix
Счастье
Гарантия

Совместим с Майкрософт ВиндоусСовместим с OS X По-прежнему возникают проблемы?
Если вам не удалось исправить ошибку с помощью Reimage, обратитесь за помощью в нашу службу поддержки. Сообщите нам все подробности, которые, по вашему мнению, нам следует знать о вашей проблеме.

Reimage – запатентованная специализированная программа восстановления Windows. Он диагностирует ваш поврежденный компьютер. Он просканирует все системные файлы, библиотеки DLL и ключи реестра, которые были повреждены угрозами безопасности.Reimage – запатентованная специализированная программа восстановления Mac OS X. Он диагностирует ваш поврежденный компьютер. Он просканирует все системные файлы и ключи реестра, которые были повреждены угрозами безопасности.
Этот запатентованный процесс восстановления использует базу данных из 25 миллионов компонентов, которые могут заменить любой поврежденный или отсутствующий файл на компьютере пользователя.
Для восстановления поврежденной системы необходимо приобрести лицензионную версию Reimage инструмент для удаления вредоносных программ.

Упоминания в прессе о Reimage

Нажмите

Условия использования Reimage | Политика конфиденциальности Reimage | Политика возврата денег за товар | Нажмите

VPN имеет решающее значение, когда дело доходит до конфиденциальность пользователя. Онлайн-трекеры, такие как файлы cookie, могут использоваться не только платформами социальных сетей и другими веб-сайтами, но также вашим интернет-провайдером и правительством. Даже если вы примените самые безопасные настройки через веб-браузер, вас все равно можно будет отслеживать через приложения, подключенные к Интернету. Кроме того, браузеры, ориентированные на конфиденциальность, такие как Tor, не являются оптимальным выбором из-за пониженной скорости соединения. Лучшее решение для вашей максимальной конфиденциальности – это Частный доступ в Интернет – быть анонимным и безопасным в сети.

Программное обеспечение для восстановления данных – один из вариантов, который может вам помочь восстановить ваши файлы. После удаления файла он не исчезает в воздухе – он остается в вашей системе до тех пор, пока поверх него не записываются новые данные. Восстановление данных Pro это программа для восстановления, которая ищет рабочие копии удаленных файлов на вашем жестком диске. Используя этот инструмент, вы можете предотвратить потерю ценных документов, школьных заданий, личных фотографий и других важных файлов.

Содержание

  1. Не удалось запустить приложение, так как не удалось найти или загрузить плагин платформы QT & quot; windows & quot;
  2. Решение
  3. Другие решения
  4. Приложение не удалось запустить, так как не удалось найти или загрузить плагин QT platform » windows»
  5. 11 ответов:
  6. This application failed to start because not Qt platform plugin could be initialized
  7. Qt 5.1.1: Application failed to start because platform plugin “windows” is missing
  8. 19 Answers 19
  9. How to fix “could not find or load the Qt platform plugin windows” while using Matplotlib in PyCharm
  10. 23 Answers 23
  11. Видео

Не удалось запустить приложение, так как не удалось найти или загрузить плагин платформы QT & quot; windows & quot;

Я просмотрел все вопросы, связанные с переполнением стека, и ни одно из решений не помогло мне.

Я строю приложение Qt с этой настройкой:

Я могу нормально собирать и запускать свою программу на моей машине для разработки (отмечено выше); Я также могу установить и запустить пакет из каталога Program Files на компьютере разработчика.

Когда я устанавливаю и запускаю на компьютере с Windows Vista (несколько компьютеров)

(также не работает при чистой установке Windows 7)

Application failed to start because it could not find or load the QT platform plugin «windows»

После того, как я добавил qoffscreen.dll, теперь я получаю дополнительное сообщение: Available platform plugins are: offscreen

Если я запускаю Dependency Walker, я получаю эту ошибку в списке:

а затем дальше вниз:

Любые идеи, как исправить эту проблему DLL?

Решение

Ошибка вызвана тем, что программа не может найти qwindows.dll

qwindows.dll должен быть в папке с именем platforms так что путь от вашего исполняемого файла до DLL platforms/qwindows.dll

Тогда как в моем случае этого было недостаточно. Я также должен был добавить следующую строку в начале моего main ()

Тогда все заработало.

Другие решения

Я получил эту проблему и как я решил ее:

Используется ходок зависимостей (http://www.dependencywalker.com/ ), чтобы увидеть точный путь необходимых DLL. Попробуйте, потому что и QtCreator, и QT framework имеют одинаковые dll, и вы должны точно указать, какие из них используются.
Я скопировал все необходимые библиотеки в ту же папку, что и приложение.

Я скопировал папку платформы из QT framework / plugins и скопировал ее в ту же папку, что и приложение. Теперь приложение содержит также плагин / платформа / папка со всеми своими библиотеками

И самый важный шаг в моем случае — это создать файл с именем qt.conf в той же папке, что и приложение. Этот файл должен содержать путь к плагинам. Мой файл qt.conf содержит:

Приложение может работать на хост-системе, так как Qt bin путь в системе PATH переменная.

Существует стандартный инструмент Qt для развертывания приложений Qt в Windows. windeployqt чтобы иметь возможность запускать приложение на целевых машинах, на которых не установлен Qt.

Этот инструмент заботится о зависимостях Qt DLL, делает копию platformsqwindows.dll а также делает копию библиотек, которые вы не можете обнаружить с помощью Зависимость Уокер, так как подключаемые модули изображений и некоторые другие библиотеки DLL загружаются во время выполнения.

В результате у вас есть в этой папке все необходимые библиотеки Qt DLL для запуска приложения.

Инструмент windeployqt имеет различные варианты. Он также может позаботиться о развертывании qml связанные файлы.

Конечно, у вас также могут быть проблемы с распространяемыми MSVC, но они должны быть развернуты отдельно и установлены один раз для каждой системы.

Только некоторые сторонние библиотеки должны быть скопированы вручную, если они используются, например, OpenSSL.

У меня была та же проблема: «Приложение не удалось запустить, потому что оно не могло найти или загрузить плагин платформы QT». «Окна». Я исправил это, скопировав следующие файлы в папку app.exe (исполняемый файл моего приложения),

Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll и каталог «платформы» с qminimal.dll, qoffscreen.dll, qwindows.dll.

Qt platform plugin windows ошибка как исправить windows 10

Qt platform plugin windows ошибка как исправить windows 10

Я надеюсь, что это поможет кому-то

Обратите внимание, что эта проблема может также быть вызвано, если путь поиска qwindows.dll который закодирован в вашем приложении, включает путь, по которому вы установили Qt. Рассмотрим следующий сценарий:

Результатом является эта ошибка, потому что qwindows.dll в c:Qt. найден до тот в его локальном каталоге, и это несовместимо с этим. Очень надоедливый.

Решение состоит в том, чтобы разместить файл qt.conf в той же директории, что и ваш exe-файл. Я не знаю, как этого избежать. Если вы использовали инструмент windeployqt.exe для развертывания приложения, поэтому у вас есть подкаталог с именем platforms тогда этого достаточно:

Для людей, которые имеют эту проблему в будущем — у меня есть грязный маленький взлом, работал на меня. Попробуйте на свой страх и риск.

Выполните все шаги в Первоначальном развертывании (Быстрое и грязное) [http://wiki.qt.io/Deploy_an_Application_on_Windows]

Ну, я решил свою проблему, хотя я не уверен, в чем разница:

Приложение прошло ошибку, но затем потерпело крах.

VERSION.dll вызывал сбой (отмеченный в обходчике зависимостей), поэтому я удалил его из обоих мест.

Приложение запустилось, поэтому я систематически удалял все ненужные DLL.

Это вернуло меня в прежнее состояние.

Таким образом, все, что я могу предположить, — то, что у меня была неправильная версия qwindows.dll в каталоге платформ.

Я получил ту же проблему:
1. он может работать в VS2010;
2. он может работать в папке с файлами как:
app.exe
Платформы qwindows.dll

Источник

Приложение не удалось запустить, так как не удалось найти или загрузить плагин QT platform » windows»

Я просмотрел все вопросы, которые, по-видимому, связаны с переполнением стека, и ни одно из решений, кажется, не помогает мне.

Я создаю приложение Qt с этой настройкой:

Я могу построить и запустить свою программу нормально на моей машине разработки (отмечено выше); я также могу установить и запустить пакет из каталога Program Files на машине разработки.

Когда я устанавливаю и запускаю на машине Windows Vista (несколько машин)

(также терпит неудачу на a чистая установка Windows 7)

Application failed to start because it could not find or load the QT platform plugin «windows»

Однажды я добавил qoffscreen.dll теперь я получаю дополнительное сообщение: Available platform plugins are: offscreen

Если я пробегаю через Dependency Walker, я получаю эту ошибку в списке:

А затем еще ниже получаем the:

Есть идеи, как исправить эту проблему dll?

11 ответов:

Ошибка вызвана тем, что программа не может найти qwindows.dll

Хотя в моем случае этого было недостаточно. Мне также пришлось добавить следующую строку в начале моего main () Тогда все сработало.

Я получил эту проблему и как я ее решил:

Используемая зависимость walker (http://www.dependencywalker.com/), чтобы увидеть точный путь необходимых библиотек DLL. Попробуйте, потому что и QtCreator, и Qt framework имеют одинаковые библиотеки DLL, и вы должны точно определить, какие из них используются. Я скопировал все необходимые библиотеки DLL в ту же папку, что и приложение.

Я скопировал папку platforms из Qt framework / plugins и скопировал ее в ту же папку, что и приложение. Теперь приложение вступило в силу также плагин / платформа / папка со всеми своими DLL

[пути]
Библиотеки=../lib / qtcreator
Plugins=Плагины
Импорт=импорт
Qml2Imports=qml

Существует стандартный инструмент Qt для развертывания приложений Qt на Windows windeployqt чтобы иметь возможность запускать приложение на целевых машинах, на которых не установлен Qt.

В результате у вас есть в этой папке все необходимые библиотеки DLL Qt, чтобы запустить приложение.

Конечно, вы можете иметь также проблемы с MSVC redistributables, но они должны быть развернуты отдельно и установлены один раз в системе.

Только некоторые сторонние библиотеки должны быть скопированы вручную, если они используются, например OpenSSL.

У меня была та же проблема «приложение не удалось запустить, потому что он не мог найти или загрузить Qt platform plugin» windows» Я исправил это, скопировав файлы ниже в приложение.папка exe (my app executable),

Qt5Core.dll, Qt5Gui.dll, Qt5Widgets.dll и каталог «платформ» с qminimal.проблемы, qoffscreen.dll, qwindows.файл DLL.

Qt platform plugin windows ошибка как исправить windows 10

Qt platform plugin windows ошибка как исправить windows 10

Я надеюсь, что это кому-то поможет

Результатом является эта ошибка, потому что qwindows.dll в c:Qt. находится перед в его локальном каталоге и он несовместим с ним. Очень раздражать.

Выполните все шаги в начальном развертывании (быстрый и грязный) [http://wiki.qt.io/Deploy_an_Application_on_Windows]

Ну, я решил свою проблему, хотя и не уверен, в чем разница:

Приложение прошло мимо ошибки, но затем разбилось.

Версия.dll вызывала сбой (отмечено в dependency walker), поэтому я удалил его из обоих мест.

Приложение запустилось, поэтому я систематически удалял все ненужные dll.

Это вернуло меня в то же состояние, в котором я был. первоначально.

Таким образом, все, что я могу предположить, это то, что у меня была неправильная версия qwindows.DLL в каталог платформы.

    Но он не смог загрузить qwindows на чистую машину с той же ОС, что и развивающаяся.

Решается простым перемещением папки платформы в плагины: апп.exe Плагиныплатформыqwindows.dll

Плюс: qwindows.DLL может быть переименован в любое вам нравится, как она запрашивается с помощью плагина interafce: qt_plugin_query_metadata ()

В нем отсутствуют qwindows.dll, которая обычно должна быть в платформах, если вы не добавляете:

Для меня, я должен был установить QT_QPA_PLATFORM_PLUGIN_PATH в каталог платформ, и тогда это сработало.

Попробовал все вышеперечисленное-оказалось, что для меня это было просто потому, что у меня не было основной библиотеки DLL Qt в папке apps

Источник

This application failed to start because not Qt platform plugin could be initialized

Привет! Я делаю релиз для своего приложения, но получаю следующую ошибку при запуске приложения:
This application failed to start because not the Qt platform plugin could be initialized
Я начал получать эту ошибку после добавления dll-файлов в мое приложение. Qt переустановил, но все равно появляется. Есть ли какие-то способы решить эту проблему?

Вот что выводится в консоль:
qt.qpa.plugin: Could not find the Qt platform plugin «windows» in «»
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Ошибка This application failed to start because no Qt platform plugin could be initialized
Здравствуйте. При запуске QT приложения возникает такая ошибка: This application failed to start.

This application failed to start because it could not find or load the Qt platform plugin «windows»
Да, я знаю, что этим вопросом заполнен весь интернет, включая англоязычный. Перечитано много тем и.

This application failed to start
Собрал нужные библиотеки для развёртывания 32-х битного приложения Qt. На сколько я знаю, такие.

Annemesski, Проделал все ваши действия, но к сожалению не получилось. На Qt Forum мне один человек другое предложил:

Start by running your application from a shell where you have typed in set QT_DEBUG_PLUGINS=1 first, and look at debug output about what it was trying to find where.

Но я так и не понял этот совет, даже с переводом.

Заказываю контрольные, курсовые, дипломные и любые другие студенческие работы здесь или здесь.

«Failed to start application (Code:4)». Я не могу войти в аську
У меня ISQ 6.5. При входе выдает ошибку. Пишет «Failed to start application (Code:4)». Я могу войти.

Ошибка при запуске GTA4 «secuLauncher: failed to start application»
Windows 7. GTA 4. Ребят,подскажите пожалуйста игруля установилась,кликаю на ярлык выдаёт ошибку.

CGI::Application::Plugin::TT
Уважаемые форумчане, помогите пожалуйста. Начал работать с perl сравнительно недавно. Есть.

Ошибка not find or load the Qt platform plugin «minimal» в Ubuntu IDE (qtcreator)
Здравствуйте. В основных сообщениях при компиляции это: Не удалось загрузить типы из модуля.

windows failed to start
здаравствуйте.при включении компьютера вылезает ошибка загрузки винды.

Источник

Qt 5.1.1: Application failed to start because platform plugin “windows” is missing

Edit: Some people started to mark my question as a duplicate. Do not forget that many similar questions existed when I asked this one (see e.g. the list below). However, none of these answers solved my problem. After a long search I found a comment which had been ignored by all users pointing to the missing lib. Now, many months later, the comment has been changed to an answer. However, when I answered this question by msyself I intended to help other people by directly providing the solution. This should not be forgotten and so far my answer helped a lot of people. Therefore my question is definitely not a duplicate. By the way: The accepted answer within the provided link on top does not solve the problem!

Yes, i used the search:

However, in my case the problem still persists. I am using Qt 5.1.1 with Visual Studio 2012 and developed my Application on Windows 7 with Qt Creator 2.8.1. Application is compiled in «Release»-mode and can be executed if directly started with Qt Creator.

However, when starting from the «release»-Folder, i get the following message:

This application failed to start because it could not find or load the Qt platform plugin «windows». Available platform plugins are: minimal, offscreen, windows.

Folder structure looks like this:

Platforms is the folder directly copied from QtQt5.1.15.1.1msvc2012pluginsplatforms including e.g. qwindows.dll. Does not matter if I rename it to «platform» as some other users did. Qt is still not finding the «platform plugin windows», where is my mistake?

Qt platform plugin windows ошибка как исправить windows 10

19 Answers 19

Okay, as posted here https://stackoverflow.com/a/17271172/1458552 without much attention by other users:

The libEGL.dll was missing! Even though this has not been reported when trying to start the application (all other *.dlls such as Qt5Gui.dll had been reported).

Qt platform plugin windows ошибка как исправить windows 10

I created a platforms directory next to my exe location and put qwindows.dll inside, but I still received the «Failed to load platform plugin «windows». Available platforms are: windows» error.

I had copied qwindows.dll from C:QtQt5.1.1ToolsQtCreatorbinpluginsplatforms, which is not the right location. I looked at the debug log from running in Qt Creator and found that my app was looking in C:QtQt5.1.15.1.1mingw48_32pluginsplatforms when it ran in the debugger.

When I copied from C:QtQt5.1.15.1.1mingw48_32pluginsplatforms, everything worked fine.

The release is likely missing a library/plugin or the library is in the wrong directory and or from the wrong directory.

Qt intended answer: Use windeployqt. see last paragraph for explanation

Setting the QT_QPA_PLATFORM_PLUGIN_PATH environment variable to %QTDIR%pluginsplatforms worked for me.

It was also mentioned here and here.

I ran into this and none of the answers I could find fixed it for me.

My colleauge has Qt (5.6.0) installed on his machine at: C:QtQt5.6.05.6msvc2015plugins
I have Qt (5.6.2) installed in the same location.

To get around this, I added the following line of code to the application which seems to force it to look next to the exe for the ‘platforms’ subfolder before it looks at the path in the Qt5Core.dll.

I added the above line to the main method before the QApplication call like this:

Qt platform plugin windows ошибка как исправить windows 10

create dir platforms and copy qwindows.dll to it, platforms and app.exe are in the same dir

cd app_dir mkdir platforms xcopy qwindows.dll platformsqwindows.dll

Folder structure + app.exe + platformsqwindows.dll

I found another solution. Create qt.conf in the app folder as such:

And then copy the plugins folder into the app folder and it works for me.

Most of these answers contain good (correct) info, but in my case, there was still something missing.

My app is built as a library (dll) and called by a non-Qt application. I used windeployqt.exe to set up the Qt dlls, platforms, plugins, etc. in the install directory, but it still couldn’t find the platform. After some experimentation, I realized the application’s working directory was set to a different folder. So, I grabbed the directory in which the dll «lived» using GetModuleHandleExA and added that directory to the Qt library path at runtime using

This worked for me.

Qt platform plugin windows ошибка как исправить windows 10

For me the solution was to correct the PATH variable. It had Anaconda3Librarybin as one of the first paths. This directory contains some Qt libraries, but not all. Apparently, that is a problem. Moving C:ProgramsQt5.12.3msvc2017_64bin to the front of PATH solved the problem for me.

Qt platform plugin windows ошибка как исправить windows 10

I had this problem while using QT 5.6, Anaconda 4.3.23, python 3.5.2 and pyinstaller 3.3. I had created a python program with an interface developed using QTcreator, but had to deploy it to other computers, therefore I needed to make an executable, using pyinstaller.

I’ve found that the problem was solved on my computer if I set the following environment variables:

But this solution only worked on my PC that had conda and qt installed in those folders.

To solve this and make the executable work on any computer, I’ve had to edit the «.spec» (file first generated by pyinstaller) to include the following line:

datas=[( ‘C:Miniconda3pkgsqt-5.6.2-vc14_3Librarypluginsplatforms*.dll’, ‘platforms’ ),]

This solution is based on the answers of Jim G. and CrippledTable

I had the same problem and solved it by applying several things. The first, if it is a program that you did with Qt.

I hope this solution serves you.

Remember that if your operating system is 64 bits, the libraries will be in the System32 folder, and if your operating system is 32 bits, they will also be in the System32 folder. This happens so that there are no compatibility problems with programs that are 32 bits in a 64-bit computer. The SysWOW64 folder contains the 32-bit files as a backup.

Qt platform plugin windows ошибка как исправить windows 10

For anyone coming from QT version 5.14.0, it took me 2 days to find this piece statment of bug:

windeployqt does not work for MinGW QTBUG-80763 Will be fixed in 5.14.1

So be aware. Using windeployqt withMinGW will give the same error stated here.

For a MinGW platform and if you are compiling a Debug target by a hand made CMakeLists.txt written ad hoc you need to add the qwindows.dll to the platform dir as well. The windeployqt executable does its work well but it seems that for some strange reason the CMake build needs the release variant as well. In summary it will be better to have both the qwindows.dll and qwindowsd.dll in your platform directory. I did not notice the same strange result when importing the CMake project in QtCreator and then running the build procedure. Compiling on the command line the CMake project seems to trigger the qwindows.dll dependency either if the correct one for the Debug target is set in place (qwindowsd.dll)

Use this batch file: RunWithQt.bat

If you have Anaconda installed I recomend you to uninstall it and try installing python package from source, i fixed this problem in this way

Qt platform plugin windows ошибка как исправить windows 10

The application qtbase/bin/windeployqt.exe deploys automatically your application. If you start a prompt with envirenmentvariables set correctly, it deploys to the current directory. You find an example of script:

In this little example, «Polyhedron.cmd» contains the following text:

All scripts can be the same apart from the last line, obviously. The only caveat is: the «DOS-Window» stays open for as long as you use the actual program. Close the shell-window, and you kill the *.exe as well. Whereever you copy the «CGAL»-folder, as the weird «%

Источник

How to fix “could not find or load the Qt platform plugin windows” while using Matplotlib in PyCharm

I am getting the error «could not find or load the Qt platform plugin windows» while using matplotlib in PyCharm.

How can I solve this?

Qt platform plugin windows ошибка как исправить windows 10

23 Answers 23

I had the same problem with Anaconda3 4.2.0 and 4.3.0.1 (64-bit). When I tried to run a simple program that uses matplotlib, I got this error message:

Reinstalling didn’t fix it.

What helped was this (found here): Look for the Anaconda directory and set the Libraryplugins subdir (here c:ProgramDataAnaconda3Libraryplugins ) as environment variable QT_PLUGIN_PATH under Control Panel / System / Advanced System Settings / Environment Variables.

After setting the variable you might need to restart PyCharm, if the change does not have an immediate effect.

Even though after that the command line Python worked, TexWorks (which uses Qt as well) displayed an error message very much like it. Setting the QT_PLUGIN_PATH to the directory containing TexWorks’ Qt DLLs (here C:UserschrisAppDataLocalProgramsMiKTeX 2.9miktexbinx64 ) fixed the problem for both programs.

I found that this was being caused by having the MiKTeX binaries in my PATH variable; and the wrong Qt dll’s were being found. I just needed to re-arrange the PATH entries.

If you are running PyQt5 and PySide2, this solved the problem for me:

Copy the following files:

I tried the following at Anaconda’s prompt, and it solved this problem:

Qt platform plugin windows ошибка как исправить windows 10

My qt.conf files looks like this in notepad:

Qt platform plugin windows ошибка как исправить windows 10

If you want to visualize your matplotlibs in an alternative way, use a different backend that generates the graphs, charts etc.

This worked for me.

Just add a system variable:

and set its value to

Qt platform plugin windows ошибка как исправить windows 10

I have found a solution that worked for me. This solution includes a code snippet to add before you import any modules from Pyside2 or PyQt5 package. See «Qt platform plugin «windows» #2″ for more information.

This code snippet is from the link:

This solution works for PyQt5 and PySide2 modules. I don’t know if it’s relevant but I added the QT_PLUGIN_PATH environment variable in the system before.

That solution enabled me to test PySide2 scripts in IDLE.

However, I faced the same error when I tried to run a bundled script (exe).

With some shallow debugging, it’s evident that plugin folder itself is missing. I fixed the problem by adding the plugin folder in the appropriate location:

Qt platform plugin windows ошибка как исправить windows 10

Qt platform plugin windows ошибка как исправить windows 10

First, use the command:

conda remove pyqt qt qtpy

Then install using:

conda install pyqt qt qtpy

This worked for me.

Qt platform plugin windows ошибка как исправить windows 10

Qt platform plugin windows ошибка как исправить windows 10

Setting an environment variable:

Copy the folder platforms:

Qt platform plugin windows ошибка как исправить windows 10

Please try this in the script

Qt platform plugin windows ошибка как исправить windows 10

I know everyone above had provided various ways to fix OP’s issue. I just want to add on some suggestions.

By adding the QT_PLUGIN_PATH = C:UsersAnaconda3Libraryplugins as your local machine environment variable it helps to fix OP’s PyCharm issue above. However, this will break other systems in your machine like: Dropbox reports missing QT, AMD settings fails to launch(which happens on my side) etc.

Instead of adding QT_PLUGIN_PATH to your machine locally, one can add the environment variable in PyCharm’s python interpreter setting as shown below: Qt platform plugin windows ошибка как исправить windows 10

This method not only allow your PyCharm’s python.exe able to search those DLLs but also not breaking other systems’ QT lookup PATH.

Qt platform plugin windows ошибка как исправить windows 10

I have the same issue and fixed in this way In Anaconda installation folder I went to : (change it to your installed path): C:ProgramDataAnaconda3Libsite-packagesPySide2 Edit this file by adding the following code lines :

save this file and try again and the issue should be gone 🙂

Qt platform plugin windows ошибка как исправить windows 10

I had the same issue. Following «Activating an environment» in «Managing environments» solved the issue.

In the command line:

where myenv=base for my setup.

copy the plugins from PySide2 and paste and overwrite the existing plugins in Miniconda worked for me.

Qt platform plugin windows ошибка как исправить windows 10

In my case, I had multiple combined problems in order to make PyQt5 run on Windows, see DLL load failed when importing PyQt5

SOLUTION FOR WINDOWS USERS

Create new environment variable with:

name: QT_PLUGIN_PATH path: C:yourpythonpathLibsite-packagesPyQt5Qtplugins

after that exe file will work

copy platforms from Anaconda3Libraryplugins and put it in the Anaconda3. for env put the platforms in the specific env folder

Источник

Видео

PyQt5 и ошибка “This application failed to start because no Qt platfom plugin could be found”Скачать

PyQt5 и ошибка "This application failed to start because no Qt platfom plugin could be found"

How To Fix No Qt Platform Plugin Could Be Initialized Error – This Application Failed To StartСкачать

How To Fix No Qt Platform Plugin Could Be Initialized Error - This Application Failed To Start

РЕШЕНО: все ошибки плагина платформы QT! | Python | C ++ | Современный плоский графический интерфейс | PyQt PySide QtСкачать

РЕШЕНО: все ошибки плагина платформы QT! | Python | C ++ | Современный плоский графический интерфейс | PyQt PySide Qt

How To Fix No Qt Platform Plugin Could Be Initialized Error – The Application Failed To StartСкачать

How To Fix No Qt Platform Plugin Could Be Initialized Error - The Application Failed To Start

How To Fix No Qt Platform Plugin Could Be Initialized Error – This Application Failed To StartСкачать

How To Fix No Qt Platform Plugin Could Be Initialized Error - This Application Failed To Start

Как исправить ошибку плагина платформы QT на эмуляторе YuzuСкачать

Как исправить ошибку плагина платформы QT на эмуляторе Yuzu

How to solve the ERROR Could Not find the QT Platform windows InСкачать

How to solve the ERROR  Could Not find the QT Platform windows  In

No QT platform plugin could be initialized – Решение проблемыСкачать

No QT platform plugin could be initialized - Решение проблемы

Rpcs3 не удалось запустить это приложение, не удалось инициализировать плагин платформы Qt.Скачать

Rpcs3 не удалось запустить это приложение, не удалось инициализировать плагин платформы Qt.

Плагин платформы qt не может быть инициализирован | ИСПРАВЛЕНО 100{3d48e229129485425f86d7d4a41ea2169aeca20a95f69f5ab3c254d225a76340}Скачать

Плагин платформы qt не может быть инициализирован | ИСПРАВЛЕНО 100{3d48e229129485425f86d7d4a41ea2169aeca20a95f69f5ab3c254d225a76340}

When launching certain apps on Windows, many users receive the “This application failed to start because no Qt platform plugin could be initialized” error. Don’t worry. This post of MiniTool explores several effective troubleshooting methods.

This Application Failed To Start Because No Qt Platform Plugin Could Be Initialized

According to user reports, the “this application failed to start because no Qt platform plugin could be initialized” error can occur with many apps such as OneDrive, Designer, Python, etc. This error often appears after installing a series of Windows updates. Here’s a true example from the answersmicrosoft.com forum:

After a series of recent Windows updates my Surface displays the following error when we log in OneDrive – This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. I have searched the community and followed the responses given to others suffering the same fate but so far this has not resolved the issue. Looking to know what I should attempt next?https://answers.microsoft.com/en-us/windows/forum/all/application-failed-to-start-because-no-qt-platform/205e4259-dcbc-4d72-addb-8e7edb9663e9

no Qt platform plugin could be initialized

Qt is a cross-platform software that was designed to create graphical user interfaces and cross-platform applications on Windows, Linux, macOS, and Android. However, when something went wrong with the Qt platform, you may receive the “This application failed to start because it could not find or load the Qt platform plugin Windows” error.

It seems like reinstalling the application may fix the error. However, some users encounter new errors when reinstalling the app. Don’t worry. Here we explore several effective troubleshooting methods. Let’s try.

How to Fix the “No Qt Platform Plugin Could Be Initialized” Error

After analyzing extensive user reports, we summarize the 6 applicable ways to fix the Qt platform plugin Windows error. You can try them in order until the error gets solved or choose the ones that work best for you.

Fix 1. Replace the Qt Files in the Destination

The first and proven method is to replace the Qt files in the destination folder. Here we take Python for example. To do so, follow the steps below:

Step 1. Press the Win + E keys to open the File Explorer, select This PC, type pyqt5_tools in the search box, and hit Enter.

Step 2. Right-click the pyqt5_tools folder once the search is complete and select Open folder location.

Step 3. Then go to the folder path “PyQt5 > Qt > plugins”, and then open the Plugin folder, right-click the platforms folder, and select Copy.

Step 4. Go to the site-packages folder that you initially opened and go to pyqt5_tools > Qt > bin.

Step 5. Right-click any empty space inside the bin directory and select paste. Then confirm it when you see the “Replace the files in the destination” message.

open Qt5 tools folder

Now, you can relaunch the app and see if the “this application failed to start Qt platform Windows” message persists.

Fix 2. Perform a Clean Boot

One of the possible reasons for the “this application failed to start Qt platform Windows” error is third-party software conflicts. If you are not sure which app is causing the conflict, you can perform a clean boot (click on the Hyperlink to know the detailed steps). Once you find out the conflicting software, uninstall it and check if the error is fixed.

Fix 3. Check System File Corruption

Sometimes corrupted system files can trigger various errors and issues when running your apps such as the “no Qt platform plugin could be initialized” error. So, we recommend you run an SFC scan or DISM to check system files.

Step 1. Type cmd in the search box, and then right-click Command Prompt and select Run as administrator option.

Step 2. Type the sfc /scannow command in the elevated command prompt and hit Enter. After that, the SFC tool will scan and try to repair the corrupted system files automatically.

run an SFC scan

Step 3. If the SFC command was unable to repair corrupt system files, you can try running the following DISM commands:

  • DISM /Online /Cleanup-Image /CheckHealth
  • DISM /Online /Cleanup-Image /ScanHealth
  • DISM /Online /Cleanup-Image /RestoreHealth

Fix 4. Reinstall the App

As the error message hints, reinstalling the application may help fix the problem. However, many users cannot uninstall the app smoothly. Don’t worry. We summarize the following 3 applicable ways to reinstall the app. (Here we take reinstalling OneDrive for example)

Uninstall OneDrive via the Run box:

Step 1, Press Win + R keys to open the Run dialog box, and then type the following command in it and hit Enter. Here make sure you replace the OneDriveSetup.exe path with the actual location.

%userprofile%\AppData\Local\Microsoft\OneDrive\Update\OneDriveSetup.exe

reinstall OneDrive with the Run dialog box

Step 2. Once uninstalled, go through the installation steps and restart your computer and check if the error gets fixed. If it fails to uninstall the application, you can try the following 2 methods.

Uninstall OneDrive via CMD:

Step 1. Type cmd in the Run dialog box and press Ctrl + Shift + Enter keys to open the elevated Command Prompt window.

Step 2. Type the following command and hit Enter to uninstall the app. If you are running on a 32-bit system, replace SysWOW64 with System32. This will force uninstalling the app.

  • taskkill /f /im OneDrive.exe 
  • %SystemRoot%\SysWOW64\OneDriveSetup.exe /uninstall

Uninstall OneDrive from Settings:

Step 1. Right-click the Start menu at the bottom left and select Apps and Features.

Step 2. Inside the Applications window, search for OneDrive by name and click the Uninstall button.

uinstall OneDrive

Step 3. Then follow the on-screen prompts to complete the uninstallation. After that, you can reinstall the app and check if the error disappears.

Fix 5. Download the Update.xml File of the App

Some users reported that the error can be fixed by downloading the update.xml file of the app. If you can’t reinstall OneDrive via the above method, try this solution. Click here to download the OneDriveSetup.exe file, and run it to install the latest version of OneDrive.

a user report from the Microsoft forum

Fix 6. Undo the Recent Changes

Many people reported that “This application failed to start because it could not find or load the Qt platform plugin Windows” error mainly occurs after installing a series of Windows updates. If this scenario applies to you, you can try performing a system restore or uninstalling these updates manually.

Step 1. Press the Win + I keys to open the Settings app, and then select Update & Security > View update history.

click View update history

Step 2. Click on Uninstall updates, and then right-click the most recent update and select Uninstall. Then follow the on-screen prompts to complete the uninstallation. Then repeat the same procedure to uninstall other Windows updates.

uninstall Windows updates

Добавить комментарий