View Single Post
Markkyboy's Avatar
Posts: 433 | Thanked: 727 times | Joined on Oct 2012 @ Costa Blanca, Espaņa
#1
Hi all,

I'm having problems making a cover action work. Here's my current code;

Code:
import QtQuick 2.4
import Sailfish.Silica 1.0

CoverBackground {
    CoverPlaceholder {
        id: coverPlaceholder
        text: "National Rail"
        icon.source: "../images/harbour-nationalrail.png"
    }
    CoverActionList {
        CoverAction {
            iconSource: "image://theme/icon-cover-search"
            onTriggered: Qt.resolvedUrl("Search.qml")
        }
    }
}
Quite simple, I just want to click the search icon on the cover and open the Search page of my app.......so, what am I missing here?

file hierarchy;

CoverPage - /usr/share/harbour-nationalrail/qml/cover/CoverPage.qml
Other pages - /usr/share/harbour-nationalrail/qml/pages/Search.qml

Thanks,

p.s. courteous answers only please
__________________
..oO(Don't just sit there standing around, pick up a shovel and sweep up!)Oo..

Last edited by Markkyboy; 2017-09-11 at 01:00. Reason: Cover action (Solved)
 

The Following 3 Users Say Thank You to Markkyboy For This Useful Post: