To use a resource file, even if it is in the same folder, you must add the resource file to the project in Qtcreator to use it. Just right-click on the project name in your project tree in QtCreator and click on add existing files, then you add your resource file, and now you can use your resource in your project.
, .
QResource::registerResource("/path/yourresource.rcc");
:/ qrc:///.
: qrc:///files/yourfile yourfile, files resource.