When you are adding the file, it takes the path from the current source directory.
Here is documentation from Qt Resource file system.
“The specified paths are relative to the directory containing the .qrc file. Note that the listed resource files must be located in the same directory as the .qrc file, or one of its subdirectories”
If you don’t want this relative path in QRC file, you can remove the entire path and keep only required file. Just open the QRC file in Qt creator->RightClick->Rename. Now you can remove the path you don’t want.
Hope this helps.
↧