Correct qrc resource file path?
Solved
General and Desktop
-
Hello fellow QT'ers, wondering if you folks have an suggestions for how to handle this:
I have an app with an app.qrc file as follows:C:\apps\VisualApp\app.qrc resources/img/background.png Resource URL: :/resources/img/background.png
I saved a file background.png under the folder C:\apps\VisualApp\img
How can I add this background.png file in a text file? Is it as simple as using the full filepath C:\apps\VisualApp\img\background.png or can I use the Resource URL somehow?Thanks again
-
Hi,
What do you mean by adding that image it to a text file ?
A text file is usually just a bunch of characters.
-
No problem with using the ressource path. You might want to consider using aliases with your resources.