Код: Выделить всё
cardVN1->setImage("://vn1.jpg");// The set image function is user-defined passing a QString as an argument by reference
Код: Выделить всё
void CustomCard::setImage(std::string& img_path){
QImageReader imageReader(img_path);
if(!imageReader.canRead()){
qDebug()
Подробнее здесь: [url]https://stackoverflow.com/questions/79814299/how-to-fix-resources-qrc-not-loading-images[/url]
Мобильная версия