5

I have a Qt project in Qt Creator. I have a qrc file with the QMLs registered and everything works. However for some reason the "projects" view of Qt Creator doesn't show the QML folder (screenshot attached) like it does for any example project.

I'm just curious. Why does QML folder not show in my project but it shows up for the example projects?

list of folders

2 Answers 2

2

You need to add them to your .pro file (if I'm not wrong it's enough to append them to DISTFILES).

Sign up to request clarification or add additional context in comments.

2 Comments

Sorry, was not SOURCES, but DISTFILES. Fixed the response.
Yep - this is the conclusion I came up with - thanks. One more question, is there a way to automatically do it, or must it be a manual thing?
1

Figures that you have to add the files to the DISTFILES directive.

1 Comment

This should be a comment not an answer. :-)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.