Image resource, showing in Qt Creator but not at runtime.
-
I have an image resource which has the alias ICN_CONNTD the image is a png file and is 64x64. In the source I have:
mppmConnected = new Pixmap(":/ICN_CONNTD");If I hover the mouse of the above line the image is displayed in a hovering context display. When I debug in Qt Creator and stop at the above line then step over it, mppmConnected is returned as (0x0) and highlighted as red.
Why isn't this working? I have use exactly the same method in another project and that works fine.
commsTester.qrc:
<RCC> <qresource prefix="/"> <file alias="ICN_CONNTD">../res/conntd.png</file> <file alias="ICN_DISCONTD">../res/discontd.png</file> </qresource> </RCC> -
I have an image resource which has the alias ICN_CONNTD the image is a png file and is 64x64. In the source I have:
mppmConnected = new Pixmap(":/ICN_CONNTD");If I hover the mouse of the above line the image is displayed in a hovering context display. When I debug in Qt Creator and stop at the above line then step over it, mppmConnected is returned as (0x0) and highlighted as red.
Why isn't this working? I have use exactly the same method in another project and that works fine.
commsTester.qrc:
<RCC> <qresource prefix="/"> <file alias="ICN_CONNTD">../res/conntd.png</file> <file alias="ICN_DISCONTD">../res/discontd.png</file> </qresource> </RCC>