![]() |
SDK and install pahts
I need to include a couple of files with my app. They are not really QML-related, so I'm putting them in their own directory as a sibling to qml.
As far as I understand, I can do this in the .pro file, like this: myfiles.files = myfiles myfiles.path = /usr/share/$${TARGET} INSTALLS += myfiles This places the files in /usr/share/myapp/myfiles/ and that's fine. The QML stuff is placed in /usr/share/myapp/myfiles/ I do not set organization name, so it's defaulting to myapp. To find my files, I call QStandardPaths::standardLocations(QStandardPaths:: DataLocation); And I get three paths: /home/nemo/.local/share/myapp/myapp /usr/local/share/myapp/myapp /usr/share/myapp/myapp And I look for myfiles in each of the paths, and that all fine, except, that my files are in /usr/share/myapp/myfiles, not /usr/share/myapp/myapp/myfiles. What's the correct way to handle this? I assume this is related to the changes in 1.0.3.8. |
All times are GMT. The time now is 17:58. |
vBulletin® Version 3.8.8