We have moved to a new Sailfish OS Forum. Please start new discussions there.

Revision history [back]

click to hide/show revision 1
initial version

posted 2014-04-27 15:35:25 +0200

How to set image to CoverAction

I tried to set image to CoverAction. Here code of my Cover:

 import QtQuick 2.0
import Sailfish.Silica 1.0

CoverBackground
{
    Label
    {
        id: label
        anchors.centerIn: parent
        text: "My Cover"
    }

    CoverActionList
    {
        id: coverAction

        CoverAction
        {
            iconSource: "update_icon.jpg"
        }

        CoverAction
        {
            iconSource: "image://theme/icon-cover-pause"
        }
    }
}

I added new file in Resources folder (resources.qrc):

<RCC>
<qresource prefix="/">
    <file>update_icon.jpg</file>
</qresource>

</rcc>

Also I added image file named update_icon.jpg. It placed at the root of project folder. Image not showing on cover. Did I miss smth?...

How to set image to CoverAction

I tried to set image to CoverAction. Here code of my Cover:

 import QtQuick 2.0
import Sailfish.Silica 1.0

CoverBackground
{
    Label
    {
        id: label
        anchors.centerIn: parent
        text: "My Cover"
    }

    CoverActionList
    {
        id: coverAction

        CoverAction
        {
            iconSource: "update_icon.jpg"
        }

        CoverAction
        {
            iconSource: "image://theme/icon-cover-pause"
        }
    }
}

I added new file in Resources folder (resources.qrc):

<RCC>
<qresource prefix="/">
    <file>update_icon.jpg</file>
</qresource>

</rcc>

Also I added image file named update_icon.jpg. It placed at the root of project folder. Image not showing on cover. Did I miss smth?...