QtQuick,基于 QML 的应用程序内容不可见

发布于 2024-12-03 20:55:22 字数 327 浏览 5 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

温柔戏命师 2024-12-10 20:55:22

检查 qml 文件的位置,二进制可执行文件应该可以访问它们。

Check the location of your qml files, they should be accessible to the binary executable.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文