Problem with ressource file
-
The code in the screeshot looks fine.
Did you specify an alias in the qrc-file?
Can you paste the plaintext content of the qrc-file? -
Is rcc run on the resource file at all?
qmake is terrible at detecting changes in the .pro file, try clearing everything and then rebuild
-
Also, the .pro file that you posted should not work correctly. Newlines in pro files are the same as
;in C++RESOURCES += ress.qrcshould become
RESOURCES += ress.qrcsame as
SOURCES += main.cpp mainwindow.cppshould become
SOURCES += main.cpp \ mainwindow.cpp -
Also, the .pro file that you posted should not work correctly. Newlines in pro files are the same as
;in C++RESOURCES += ress.qrcshould become
RESOURCES += ress.qrcsame as
SOURCES += main.cpp mainwindow.cppshould become
SOURCES += main.cpp \ mainwindow.cpp -
@VRonin I've rebuild the project, still can't see the image. I'll try on a fresh project right now.
-
Also, the .pro file that you posted should not work correctly. Newlines in pro files are the same as
;in C++RESOURCES += ress.qrcshould become
RESOURCES += ress.qrcsame as
SOURCES += main.cpp mainwindow.cppshould become
SOURCES += main.cpp \ mainwindow.cpp