I use the qt resource system with png files. I create .a qrc file where I specify all the pictures I need and add it to my CMakeLists. The following code works great:
QPixmap pix(":/resources/image.png");
But can I somehow use compiled resources with other libraries, for example SFML? The following code won't work, are there any alternative ways?
sf::Texture txt;
sf::Sprite spr;
txt.loadFromFile(":resources/player.png");
spr.setTexture(txt);