Providing absolute/relative file path
File path passed from qml is taken in relative to Build directory qml path.I want it to be relative of source directory paths I am passing it.
One option would be to copy given folder path inside qml directory,but that will be putting a huge limitation from user's point of view.
Thanks in advance,any help would be greatly appreciated...................
You can put QML files in the Resource File.
thanks for reply.
I know this,but I don't want to put images inside qrc as binary size will increase.
Also,I have another query. Putting relative path provides me "file:///" whereas I have to manually append "file:///" while providing absolute image path.
Any kinds of suggestions are welcome.
bq. I know this,but I don’t want to put images inside qrc as binary size will increase.
Then you need to provide absolute paths or relative paths ( if the file you know is several directories up using "../../../clover.png" for e.g )
bq. Also,I have another query. Putting relative path provides me “file:///” whereas I have to manually append “file:///” while providing absolute image path.