Qt 运行时报错 This application failed to start because no Qt platform plugin could be initialized!

PYCHARM PYSIDE6 QT 打包异常3种处理方式 no qt platform plugin could be initialized no qt platform plugin could be initialized pycharm pyside 打包软件运行异常 阅读详情

问题

运行时报错:
This application failed to start because no Qt platform plugin could be initialized!
如图:在这里插入图片描述

描述:
代码没有问题,我换成其他构件就正常了。如 5.12.7

解决方案:

环境变量中加入:QT_PLUGIN_PATH
QT_PLUGIN_PATH=D:\Qt\Qt_SDK\5.12.6\msvc2017\plugins

我的方式是在Qt Creator 里面添加
即:项目 -> 编译(build) -> 环境变量-> 添加 (如图)
在这里插入图片描述

解决Qt平台插件初始化失败:This application failed to start because no Qt platform plugin could be initialized 本文深入解析了Qt应用程序启动时常见的‘platform plugin’初始化失败报错,指出其核心在于环境变量冲突或多版本Qt共存导致的插件路径混乱。文章提供了从环境变量检查、路径调整到文件补全的完整解决方案,并给出了使用windeployqt工具等预防性开发实践,帮助用户和开发者彻底解决这一经典问题。 阅读详情

相关推荐

OneDrive出现Application Failed to start because no QT Platform could be initialized

系统是win10,启动OneDrive提示“Application Failed to start because no QT Platform could be initialized” balabala的信息

ShiAokai 2954

this application failed to start because no qt platform plugin could be initialized reinstalling the

conda环境,但多次尝试conda install pyqt5都下载失败,尽管我配置了环境源,但依旧显示conda无法找到pyqt5, 因此,最后使用pip install pyqt5 成功。如果你使用的是conda或pip安装的Python,可以尝试重新安装PyQt或PySide。尝试了多次了卸载重新安装Pyqt5问题依旧没有解决,最开始以为问题是由于conda 和 pip 不兼容类似的原因,导致没搜索到。此时,安装完成,但运行依旧失败,所以再一次尝试重新下载,这时多了一个命令。

TTritium的博客 3万+

no Qt平台插件可以被初始化的问题解决方案

但是在运行程序时,可能会出现“no Qt platform plugin could be initialized”的问题,这是因为程序找不到Qt平台插件所在的路径。可以通过设置环境变量QT_QPA_PLATFORM_PLUGIN_PATH来指定Qt平台插件所在的路径。需要注意的是,这个环境变量的值应该是Qt平台插件所在目录的绝对路径。在程序所在目录中,创建一个名为platforms的文件夹,然后将Qt安装目录下的plugins文件夹中的所有文件(不包括子文件夹)都复制到platforms文件夹中即可。

BUG?不存在的! 4458

QT报错:This application failed to start because no Qt platform plugin could be initialized.

报错信息 “this application failed to start because no Qt platform plugin could be initialized.Reinstalling the application may fix this problem” 通常是由于缺少必要的 Qt 平台插件。

huanbailu的博客 5万+

解决Python中的“No Qt platform plugin could be initialized“问题

这个错误通常与Qt库的安装或配置有关,Qt是一种常用的GUI开发框架。希望上述解决方法能够帮助您解决"No Qt platform plugin could be initialized"的问题。确保您正确安装了Qt库,并按照上述步骤设置了环境变量。具体的依赖项可能因操作系统而异,您可以查阅Qt文档或相关资源来获取更多信息。在某些情况下,Qt库的安装路径可能没有被正确地添加到系统的环境变量中,导致无法找到Qt库的插件。如果没有输出或输出为空,则表示没有安装Qt库。请确保将路径替换为您实际安装Qt库的路径。

ByteWhiz的博客 3907

3DSlicer冠脉分割实战:从DICOM导入到三维重建的完整流程(附常见问题解决)

本文详细介绍了使用3DSlicer进行冠脉分割的完整流程,从DICOM数据导入到三维重建,涵盖环境配置、视图优化、心脏区域分割及冠脉精细分割等关键步骤。针对常见问题提供实用解决方案,帮助医学影像从业者高效完成心血管结构分析,提升诊断准确性。

weixin_29271053的博客 628

This application failed to start because no Qt platform plugin could be initialized问题解决合集

今天总算解决了困扰我快一周的问题。 This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. 尝试了许多解决方法,stackoverflow上有许多回答,包括copy plugin、环境变量… Qt creator fails to open on Windows 10 “no Qt pl

Hoohoo的博客 3万+

告别瞎猜!用通达信/同花顺这些资金流向函数,一眼看穿主力动向(附实战公式)

本文详细解析了通达信/同花顺资金流向函数的实战应用,帮助投资者精准识别主力动向。通过12个核心资金函数的组合逻辑,构建主力行为监控体系,避免未来函数陷阱,识别主力对倒行为,并提前捕捉异动。适合股票投资者提升自选股分析能力。

weixin_42522964的博客 1216

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

【遇到问题】matplotlib画图生成EXE时,报错This application failed to start because no Qt platform plugin could be initialized 【首先】 VS CODE用matplotlib画图,遇到问题: qt.qpa.plugin: Could not load the Qt platform plugin "windows" in "D:\ProgramFiles\Anaconda3\Lib\site-packages\Py

snwang_miss的博客 1万+

Xilinx HydraMini试玩教程

HydraMini是Xilinx推出的基于Pynq-Z2开发板的自动驾驶开发小车,其有着简单易学、高灵活性、高扩展性、高性能等优良特性,是研究人员和学生进入自动驾驶领域的一个平台。本教程会通过最基础的讲解和步骤带领读者熟悉这个平台的基本开发流程。

qq_25762163的博客 1773

TortoiseGit之配置密钥

基于github的开发必须要用到rsa密钥,因此需要用到TortoiseGit的putty key generator工具,来生成既适用于github的rsa密钥也适用于TortoiseGit的ppk密钥。

欧文的博客 2079

Qt开发,报错:This application failed to start because no Qt platform plugin could be initialized.

寞水

寞水 7万+

别再手动写JSON了!用Node-RED OPC UA节点5分钟搞定楼宇温湿度数据采集

本文介绍了如何利用Node-RED和OPC UA节点快速实现楼宇温湿度数据的自动化采集与JSON格式转换。通过可视化工具Node-RED,开发者无需编写复杂代码,5分钟内即可完成从传感器到数据输出的全流程配置,大幅提升智慧楼宇和工业物联网项目的实施效率。

weixin_30368405的博客 432

no Qt platform plugin could be initialized问题的解决办法

☞ ░ 前往老猿Python博文目录 ░ 今天因要使用到一个以前PyQT写得工具,但运行时报错: This application failed to start because no Qt platform plugin could be initialized 这是因为前不久卸载了以前的Python3.72版本,安装了Anaconda,而Anaconda会自己安装一个PyQt的版本,但没有安装对应的工具包,因此卸载该PyQt版本后安装了最新的PyQt的版本,这个版本与Anaconda不兼容。因此必须单

老猿Python 2万+

十二、基于FPGA实现slave SelectMAP配置逻辑

slave SelectMAP配置

weixin_41838250的博客 8754

YOLOv5_DeepSORT_Pytorch训练自己的多目标跟踪模型

1 准备 环境配置:https://blog.youkuaiyun.com/weixin_50008473/article/details/115250986?spm=1001.2014.3001.5501 YOLOv5_DeepSORT_Pytorch代码地址: https://github.com/mikel-brostrom/Yolov5_DeepSort_Pytorch DeepSORT论文:https://arxiv.org/pdf/1703.07402.pdf 2 训练目标检测模型 训练自己的目标检测模

weixin_50008473的博客 1万+

踩坑-OneDrive报错:This application failed to start because no Qt platform plugin could be initialized

Application Failed to start because no QT Platform could be initialized

新晋Coder,随手记记 1万+

YOLOv11改进 | 引入DEConv细节增强卷积模块:恢复细节信息,提升小目标检测精度

摘要: YOLOv11在目标检测中面临小目标检测精度不足的问题,主要由于细节信息丢失。本文提出引入DEConv(细节增强卷积)模块,通过多分支卷积和残差连接恢复高频细节,提升小目标检测性能。DEConv结合3×3卷积与空洞卷积增强边缘信息,并自适应融合特征,兼容YOLOv11的P3层(小目标关键层)且计算高效。实验表明,该改进在无人机航拍、显微镜图像等密集小目标场景中显著减少漏检,同时保持轻量化和实时性优势。代码实现可直接嵌入现有YOLO架构,仅需替换P3层卷积模块。

走向CTO的路上... 949

解决Qt This application failed to start because no Qt platform plugin could be initialized问题

解决Qt This application failed to start because no Qt platform plugin could be initialized问题 在出现这个问题之后,笔者按照网上的教程尝试添加了环境变量,使用windeploy部署等都没有解决问题,最终在StackOverflow终于找到了解决方法。 解决方法十分简单:在Qt安装文件夹,相应版本的bin目录中找到libEGL.dll,将该动态链接库直接复制到运行项目文件夹中即可正常运行。 ...

qq_51606180的博客 5万+

深度学习工具包 DeepLearningToolbox

深度学习工具包Deprecation notice.-----This toolbox is outdated and no longer maintained.There are much better tools available for deep learning than this toolbox, e.g. [Theano](http://deeplearning.net/software/theano/), [torch](http://torch.ch/) or [tensorflow](http://www.tensorflow.org/)I would suggest you use one of the tools mentioned above rather than use this toolbox.Best, Rasmus.DeepLearnToolbox================A Matlab toolbox for Deep Learning.Deep Learning is a new subfield of machine learning that focuses on learning deep hierarchical models of data.It is inspired by the human brain's apparent deep (layered, hierarchical) architecture.A good overview of the theory of Deep Learning theory is[Learning Deep Architectures for AI](http://www.iro.umontreal.ca/~bengioy/papers/ftml_book.pdf)For a more informal introduction, see the following videos by Geoffrey Hinton and Andrew Ng.* [The Next Generation of Neural Networks](http://www.youtube.com/watch?v=AyzOUbkUf3M) (Hinton, 2007)* [Recent Developments in Deep Learning](http://www.youtube.com/watch?v=VdIURAu1-aU) (Hinton, 2010)* [Unsupervised Feature Learning and Deep Learning](http://www.youtube.com/watch?v=ZmNOAtZIgIk) (Ng, 2011)If you use this toolbox in your research please cite [Prediction as a candidate for learning deep hierarchical models of data](http://www2.imm.dtu.dk/pubdb/views/publication_details.php?id=6284)```@MASTERSTHESIS\{IMM2012-06284, author = "R. B. Palm", title = "Prediction as a candidate for learning deep hierarchical models of data", year = "2012",}```Contact: rasmusbergpalm at gmail dot comDirectories included in the toolbox-----------------------------------`NN/` - A library for Feedforward Backpropagation Neural Networks`CNN/` - A library for Convolutional Neural Networks`DBN/` - A library for Deep Belief Networks`SAE/` - A library for Stacked Auto-Encoders`CAE/` - A library for Convolutional Auto-Encoders`util/` - Utility functions used by the libraries`data/` - Data used by the examples`tests/` - unit tests to verify toolbox is workingFor references on each library check REFS.mdSetup-----1. Download.2. addpath(genpath('DeepLearnToolbox'));Example: Deep Belief Network---------------------```matlabfunction test_example_DBNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit RBM and visualize its weightsrand('state',0)dbn.sizes = [100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);figure; visualize(dbn.rbm{1}.W'); % Visualize the RBM weights%% ex2 train a 100-100 hidden unit DBN and use its weights to initialize a NNrand('state',0)%train dbndbn.sizes = [100 100];opts.numepochs = 1;opts.batchsize = 100;opts.momentum = 0;opts.alpha = 1;dbn = dbnsetup(dbn, train_x, opts);dbn = dbntrain(dbn, train_x, opts);%unfold dbn to nnnn = dbnunfoldtonn(dbn, 10);nn.activation_function = 'sigm';%train nnopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.10, 'Too big error');```Example: Stacked Auto-Encoders---------------------```matlabfunction test_example_SAEload mnist_uint8;train_x = double(train_x)/255;test_x = double(test_x)/255;train_y = double(train_y);test_y = double(test_y);%% ex1 train a 100 hidden unit SDAE and use it to initialize a FFNN% Setup and train a stacked denoising autoencoder (SDAE)rand('state',0)sae = saesetup([784 100]);sae.ae{1}.activation_function = 'sigm';sae.ae{1}.learningRate = 1;sae.ae{1}.inputZeroMaskedFraction = 0.5;opts.numepochs = 1;opts.batchsize = 100;sae = saetrain(sae, train_x, opts);visualize(sae.ae{1}.W{1}(:,2:end)')% Use the SDAE to initialize a FFNNnn = nnsetup([784 100 10]);nn.activation_function = 'sigm';nn.learningRate = 1;nn.W{1} = sae.ae{1}.W{1};% Train the FFNNopts.numepochs = 1;opts.batchsize = 100;nn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.16, 'Too big error');```Example: Convolutional Neural Nets---------------------```matlabfunction test_example_CNNload mnist_uint8;train_x = double(reshape(train_x',28,28,60000))/255;test_x = double(reshape(test_x',28,28,10000))/255;train_y = double(train_y');test_y = double(test_y');%% ex1 Train a 6c-2s-12c-2s Convolutional neural network %will run 1 epoch in about 200 second and get around 11% error. %With 100 epochs you'll get around 1.2% errorrand('state',0)cnn.layers = { struct('type', 'i') %input layer struct('type', 'c', 'outputmaps', 6, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %sub sampling layer struct('type', 'c', 'outputmaps', 12, 'kernelsize', 5) %convolution layer struct('type', 's', 'scale', 2) %subsampling layer};cnn = cnnsetup(cnn, train_x, train_y);opts.alpha = 1;opts.batchsize = 50;opts.numepochs = 1;cnn = cnntrain(cnn, train_x, train_y, opts);[er, bad] = cnntest(cnn, test_x, test_y);%plot mean squared errorfigure; plot(cnn.rL);assert(er<0.12, 'Too big error');```Example: Neural Networks---------------------```matlabfunction test_example_NNload mnist_uint8;train_x = double(train_x) / 255;test_x = double(test_x) / 255;train_y = double(train_y);test_y = double(test_y);% normalize[train_x, mu, sigma] = zscore(train_x);test_x = normalize(test_x, mu, sigma);%% ex1 vanilla neural netrand('state',0)nn = nnsetup([784 100 10]);opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samples[nn, L] = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.08, 'Too big error');%% ex2 neural net with L2 weight decayrand('state',0)nn = nnsetup([784 100 10]);nn.weightPenaltyL2 = 1e-4; % L2 weight decayopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex3 neural net with dropoutrand('state',0)nn = nnsetup([784 100 10]);nn.dropoutFraction = 0.5; % Dropout fraction opts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex4 neural net with sigmoid activation functionrand('state',0)nn = nnsetup([784 100 10]);nn.activation_function = 'sigm'; % Sigmoid activation functionnn.learningRate = 1; % Sigm require a lower learning rateopts.numepochs = 1; % Number of full sweeps through dataopts.batchsize = 100; % Take a mean gradient step over this many samplesnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex5 plotting functionalityrand('state',0)nn = nnsetup([784 20 10]);opts.numepochs = 5; % Number of full sweeps through datann.output = 'softmax'; % use softmax outputopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, train_x, train_y, opts);[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');%% ex6 neural net with sigmoid activation and plotting of validation and training error% split training data into training and validation datavx = train_x(1:10000,:);tx = train_x(10001:end,:);vy = train_y(1:10000,:);ty = train_y(10001:end,:);rand('state',0)nn = nnsetup([784 20 10]); nn.output = 'softmax'; % use softmax outputopts.numepochs = 5; % Number of full sweeps through dataopts.batchsize = 1000; % Take a mean gradient step over this many samplesopts.plot = 1; % enable plottingnn = nntrain(nn, tx, ty, opts, vx, vy); % nntrain takes validation set as last two arguments (optionally)[er, bad] = nntest(nn, test_x, test_y);assert(er < 0.1, 'Too big error');```[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/rasmusbergpalm/deeplearntoolbox/trend.png)](https://bitdeli.com/free "Bitdeli Badge")

数学建模模型总结

这是本人在两年内准备参加数学建模竞赛搜集到的模型资料,已经经过了本人的筛选和整理,希望能够对准备参加数学建模竞赛的学弟学妹们提供一些帮助!

解决 Qt5 This application failed to start because no Qt platform plugin could be initialized.问题

解决 Qt5 This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem 问题 因为C盘没空间了,把之前的项目移到了D盘,然后编译运行是报错如下: 看了一下报错我的第一反应是项目配置错误,因为毕竟移盘了,之前的配置肯定都需要更改。 手动配置了以下几个,其实就是更改一下依赖的位置 qmake.exe

KevinLi的博客 6075

LinePhone3.2.7(android端最新版本) sip客户端

SIP客户端For android:LinePhone3.2.7(最新版本),官网地址:http://www.linphone.org/

解决This application failed to start because no Qt platform plugin could be initialized. Reinstalling

解决This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem. Windows pyqt打开designer.exe报错 报错信息 This application failed to start because no Qt platform plugin could be initialized

On the road 4万+

TMS_WebGMaps_1.9.8.0_Full_Source

TMS_WebGMaps_1.9.8.0_Full_Source 全源码 delphi cbuilder

程序运行时提示This application failed to start because no Qt platform plugin could be initialized.

包含QT的程序,运行的时候可能会遇到This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.Reinstarlling...这个报错。 大致意思就是qt平台插件初始化失败了。如图: 解决办法: qt5的库里包含的有个plugins文件夹,点开之后里面是bearer、iconengines

学习并记录 5万+

解决“This application failed to start because no Qt platform plugin could be initialized.”问题一例

LocalCache\local-packages\Python311\site-packages (部分路径省略)机器是windows11系统,已经安装过pyqt5。结果添加环境变量之后问题并没有解决。

thinkerqin的博客 9202

安装WPS报错This application failed to start because not Qt platform plugin could be initialized

用了几天office,感觉各种不适应,总感觉不如WPS界面亲民。于是果断官网下载WPS,可是WPS也不是你想装就能装上的。安装时总是报错 网上找各种教程,寻找几个小时,总算找到一个靠谱些的。 1.找到platforms这个文件夹的路径。 我的电脑路径是D:\WPS Office\plugins\platforms,实在找不到,就用搜索功能查找整个电脑就行。给它时间,总能找到你的路径。 2.将Calibre Portable文件夹中的plugins\platforms添加到系统环境变量中用户变量里。

sinat_20303277的博客 1万+

Designer——运行报错:This application failed to start because no Qt platform plugin could be initialized

1.现象: 点击之后,出现: 2.原因: 没有添加系统环境变量。 3.解决办法: 添加系统环境变量。 4.解决步骤: 4.1打开控制面板,且在控制面板搜索栏输入"系统" 4.2选择高级设置 4.3点击环境变量 4.4点击新建 4.5输入,确定。 ps: 变量名:QT_QPA_PLATFORM_PLUGIN_PATH。 变量值:pyqtX_tools中的与designer同级的plugins文件夹路径。 4.6重新打开软件,显示正常。 ...

Williamcsj的博客 1万+

This application failed to start because no Qt platform plugin could be initialized报错

This application failed to start because no Qt platform plugin could be initialized报错与解决

qq_52992084的博客 5279
上一篇: QCustomPlot 学习笔记 一
下一篇: Qt pro项目 检测编译器版本(64 or 32)
低配天才
博客等级 码龄10年 277粉丝 57原创
评论 1
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

个

红包个数最小为10个

元

红包金额最低5元

当前余额3.43元 前往充值 >
需支付:10.00元
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付元
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值