将 Qt Qml 应用程序部署到 Windows 8 显示一个空白窗口 [英] Deploying Qt Qml app to Windows 8 shows me a blank window

查看:61
本文介绍了将 Qt Qml 应用程序部署到 Windows 8 显示一个空白窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试部署 QML 应用程序,但我一直得到一个空白的小窗口,而不是基于 qml 的窗口.

我尝试过的事情:

我在资源中添加了我的 qml,在 Mac 中部署现在可以工作...但即使我将 qml 目录复制到我的 .exe 目录,它也不起作用我已将 qwindows.dll 复制到我的 .exe 目录中的平台目录我已经复制了所有依赖项 dll:icudt51.dll、icuin51.dll、icuuc51.dll、libEGL.dll、libGLESv2.dll、Qt5Core.dll、Qt5Gui.dll、Qt5Network.dll、Qt5Qml.dll、Qt5Quick.dll

我尝试将目录:QtQml、QtQuick、QtQuick.2 复制到我的 .exe 目录.

没有任何变化

然后我尝试使用 env 变量从命令行运行 .exe:QML_IMPORT_TRACE=1 但我什么也没看到 :(

Qt 是 5.2,Windows 8,MSVC 2010有人知道会发生什么吗?

解决方案

根据你的评论,好像漏掉了 Qt5Widgets.dll 文件

I'm trying to deploy a QML app, but I keep getting a blank small window instead of my qml based window.

The things I've tried:

I added my qml in the resources, in Mac the deployment now works... but even if I copy the qml dir to my .exe dir, it doesn't work I've copied the qwindows.dll to the platforms dir in my .exe dir I've copied all the dependencies dll: icudt51.dll, icuin51.dll, icuuc51.dll, libEGL.dll, libGLESv2.dll, Qt5Core.dll, Qt5Gui.dll, Qt5Network.dll, Qt5Qml.dll, Qt5Quick.dll

I've tried copying the dirs: QtQml, QtQuick, QtQuick.2 to my .exe dir either.

Nothing changes

Then I've tried to run the .exe from the command line with env variable: QML_IMPORT_TRACE=1 and I see nothing :(

The Qt is 5.2, Windows 8, MSVC 2010 Anyone has any clue about what can be happening?

解决方案

Based on your comment, it seem to have missed the Qt5Widgets.dll file

这篇关于将 Qt Qml 应用程序部署到 Windows 8 显示一个空白窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆