Код: Выделить всё
startScreen::startScreen(QWidget *parent)
: QDialog(parent)
, ui(new Ui::startScreen)
{
ui->setupUi(this);
QPixmap* pic{};
pic = new QPixmap(":/pics/images/startscreen_dark.png");
if(pic->isNull()){
qDebug()
Подробнее здесь: [url]https://stackoverflow.com/questions/79843327/qtwidgets-not-loading-the-resources-when-run[/url]
Мобильная версия