Код: Выделить всё
cardVN1->setImage("://vn1.jpg");// The set image function is user-defined passing a QString
Код: Выделить всё
void CustomCard::setImage(QString 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]
Мобильная версия