我尝试将目录: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 workI've copied the qwindows.dll to the platforms dir in my .exe dirI'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.dllI've tried copying the dirs: QtQml, QtQuick, QtQuick.2 to my .exe dir either.Nothing changesThen 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 2010Anyone 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 显示一个空白窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!
08-24 02:28