When i use resorce it crash my program have no idea how to fix it. Name of resource Resource.grc, name of prefix /imag, name of picture srce_sedam_one.jpg. Everything else work fine.
QPixmap pixmap1 = QPixmap (":/imag/srce_sedam_one.jpg");
QMap<int, QPixmap> map;
map.insert(4, pixmap1);
ui->label_no->setPixmap(map.value(4));