Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

執行 qmlscene QML Image: Cannot open #9

Closed
kay54068 opened this issue Feb 1, 2021 · 2 comments
Closed

執行 qmlscene QML Image: Cannot open #9

kay54068 opened this issue Feb 1, 2021 · 2 comments

Comments

@kay54068
Copy link

kay54068 commented Feb 1, 2021

@jaredtao

請問一下我想要使用 qmlscene 查看設計原檔, 但都顯示找不到Image檔案。

請問您, 有什麼方式可以解決此現象?

image

@jaredtao
Copy link
Owner

jaredtao commented Feb 2, 2021

不支持这种用法。
图片路径,我是通过C++设置imgPath变量的方式,传递给Qml的。
这样做的目的是:debug模式加载本地文件,可以更快地调试;release模式使用qrc资源文件,发布时不用再做额外的资源拷贝。

@jaredtao jaredtao closed this as completed Feb 2, 2021
@jaredtao
Copy link
Owner

jaredtao commented Feb 2, 2021

你可以修改 CusCheckBox.qml文件中的 资源路径,就能使用qmlscene了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants