QtQuick,基于 QML 的应用程序内容不可见
我在 QtCreator 中创建了一个简单的 QtQuick 应用程序(基于 QtSDK 4.7.3),该应用程序成功构建并在 QtCreator IDE 中运行,没有任何问题。
问题:当我尝试从文件系统手动运行相同的应用程序时,它仅显示空(白色)背景。
- 假设所有需要的库依赖项都已正确解决 - 否则应用程序甚至无法运行。
- 我的目标是桌面,并在 Windows 和 Ubuntu 环境中进行编译(两者均使用 QtDSK 4.7.3)。
- 编译器:MinGW 4.4。
任何人都可以找出问题所在吗?
I have created a simple QtQuick application in QtCreator (based on QtSDK 4.7.3), which builds successfully and runs from within the QtCreator IDE without any problems.
The problem: When I try to run the same application manually from the file-system, it shows empty (white) background only.
- A assume that all needed library dependencies are resolved properly - without that the application wouldn't even run.
- I'm targeting Desktop and I compile in both: Windows and Ubuntu environments (QtDSK 4.7.3 on both).
- Compiler: MinGW 4.4.
Can anyone please spot what the problem is?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查 qml 文件的位置,二进制可执行文件应该可以访问它们。
Check the location of your qml files, they should be accessible to the binary executable.