Qt ressource files dont get compiled - how to manual
-
Hi.
My Qt SDK does not compile my .qrc file when i hit run.
So how can i compile it manualy?
i tried: "rcc res.qrc" in cmd but it did no work, or did not create the files which should be generated.Rest of Information:
Qt 5.2.1 on Win7This is my .pro:
#————————————————————————-Project created by QtCreator 2015-02-25T16:00:14
#————————————————————————-
QT += core gui
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = qtico
TEMPLATE = appSOURCES += main.cpp\ qtico.cpp
HEADERS += qtico.h
FORMS += qtico.ui
RESOURCES += \ res.qrc
###########################################
This is my res.qrc File:<RCC>
<qresource prefix=”/”> <file>logo.png</file> <file>icon.ico</file>
</qresource>
</RCC>#########################################
This is the code which should load the logo from the ressource:QImage image(“qrc:/logo.png”); if(!image.isNull()) { ui->label->setPixmap(QPixmap::fromImage(image)); ui->label->show(); }