Perhaps like this (notice I wrapped Column inside Item): Code: Item { Column { property color fontcolor: "white" Row { width: parent.width CheckBox { id: tracksrc //text: "Select track from library" checked: true //checkable: true } Label { id: tracksrcText text: "Select track from library" anchors.verticalCenter: tracksrc.verticalCenter color: fontcolor } } Label { id: selecttracklabel text: "Selected track" color: fontcolor } Button { id: selecttrack text: "No track selected" checkable: false width: parent.width } Button { id: lyricssrcbutton text: lyricssrcdialog.model.get(lyricssrcdialog.selectedIndex).name width: parent.width onClicked: { lyricssrcdialog.open(); } } Button { id: go text: "Go!" width: parent.width } } SelectionDialog { id: lyricssrcdialog titleText: "Download source" selectedIndex: 0 model: ListModel { ListElement { name: "AZLyrics" } } } }
Item { Column { property color fontcolor: "white" Row { width: parent.width CheckBox { id: tracksrc //text: "Select track from library" checked: true //checkable: true } Label { id: tracksrcText text: "Select track from library" anchors.verticalCenter: tracksrc.verticalCenter color: fontcolor } } Label { id: selecttracklabel text: "Selected track" color: fontcolor } Button { id: selecttrack text: "No track selected" checkable: false width: parent.width } Button { id: lyricssrcbutton text: lyricssrcdialog.model.get(lyricssrcdialog.selectedIndex).name width: parent.width onClicked: { lyricssrcdialog.open(); } } Button { id: go text: "Go!" width: parent.width } } SelectionDialog { id: lyricssrcdialog titleText: "Download source" selectedIndex: 0 model: ListModel { ListElement { name: "AZLyrics" } } } }
import QtQuick 1.0 import org.maemo.fremantle 1.0 Item { Loader { id: goloader onLoaded: console.log("Go! clicked") } Loader { id: selecttrackloader onLoaded: console.log("Select track view loaded") } Column { property color fontcolor: "white" Row { width: parent.width CheckBox { id: tracksrc //text: "Select track from library" checked: true //checkable: true } Label { id: tracksrcText text: "Select track from library" anchors.verticalCenter: tracksrc.verticalCenter color: fontcolor } } Label { id: selecttracklabel text: "Selected track" color: fontcolor } Button { id: selecttrack text: "No track selected" checkable: false width: parent.width onClicked: { } } Button { id: lyricssrcbutton text: lyricssrcdialog.model.get(lyricssrcdialog.selectedIndex).name width: parent.width onClicked: { lyricssrcdialog.open(); } } Button { id: go text: "Go!" width: parent.width } } SelectionDialog { id: lyricssrcdialog titleText: "Download source" selectedIndex: 0 model: ListModel { ListElement { name: "AZLyrics" } } } }
.../main.qml:53 ReferenceError: Can't find variable fontcolor .../main.qml:45 ReferenceError: Can't find variable fontcolor