qml 应用程序未显示主窗口 [英] qml application not shown main window

查看:55
本文介绍了qml 应用程序未显示主窗口的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 qml Windows 应用程序.在调试模式下运行时,一切正常.当我从 C:\Program Files... 目录构建并运行它时,未显示主窗口.

I have qml Windows application. When run it in debug mode, everything is ok. When I make build and run it from C:\Program Files... directory, main window not shown.

有两件事表明应用程序有效 - 在启动之后.应用程序需要磁盘上的文件.如果不存在,则创建它.

There is two things, who shown that application works - after start. Application need file on disk. If not exists, create it.

当应用程序启动时,从 C:\Program Files... 生成一个文件.它表明,该应用程序运行 - 启动后.

When application start, from C:\Program Files... it make a file. It show, that app work - after start.

在任务管理器中 exe 可见.

In task manager exe is visible.

但是启动后没有窗口可见...

But there is no window visible after start...

你能帮我吗?

推荐答案

你应该使用带有 --qmldir 的 windeployqt.阅读本手册 http://doc.qt.io/qt-5/windows-deployment.html .

You should use windeployqt with --qmldir. Read this manual http://doc.qt.io/qt-5/windows-deployment.html .

这篇关于qml 应用程序未显示主窗口的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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