Hi,
I've got some problems with positioners:
My code is
	
	- import QtQuick 1.1 
- import com.nokia.meego 1.0 
-   
- Page 
- { 
-   //  property int items:  5 
-    // property int itemheight: screenheight / items - screenheight 
-     id: mainPage 
-     tools: maintoolbar 
-   
-     Loader 
-     { 
-         id: goLoader 
-         onLoaded: console.log("Show lyrics page loaded") 
-     } 
-     Loader 
-     { 
-         id: selectTrackLoader 
-         onLoaded: console.log("Select track page loaded") 
-     } 
-   
-     EditTrackDataSheet 
-     { 
-         id: edittrackdatasheet 
-     } 
-   
-     Column 
-     { 
-         width: parent.width 
-         Rectangle 
-         { 
-             color: "#4591ff" 
-             height: 72 
-             width: parent.width 
-             Text 
-             { 
-                 text: "Search for lyrics" 
-                 color: "white" 
-                 anchors 
-                 { 
-                     verticalCenter: parent.verticalCenter 
-                     left: parent.left 
-                     leftMargin: 30 
-                 } 
-                 font.pixelSize: 48 
-             } 
-         } 
-   
-         CheckBox 
-         { 
-             id: tracksrc 
-             text: "Select track from library" // label isn't needed with PageStackWindow 
-             checked: true 
-             anchors.horizontalCenter: parent.horizontalCenter 
-             //checkable: true 
-         } 
-   
-         // button for selecting a track from the media library 
-         Row 
-         { 
-             Text 
-             { 
-                 id: selectedtracktext 
-                 text: "Selected track:  " 
-             } 
-   
-             Button 
-             { 
-                 id: selecttrack 
-                 checkable: false 
-                 text: "<i>No track selected</i>" 
-                 width: parent.width - selectedtracktext.width 
-                 onClicked: 
-                 { 
-                     if ( tracksrc.checked  ) 
-                     { 
-                         selectTrackLoader.source = "SelectTrackPage.qml" 
-                         pageStack.push(selectTrackLoader.item) 
-                     } 
-                     else 
-                     { 
-                         edittrackdatasheet.open() 
-                     } 
-                 } 
-             } 
-         } 
-   
-         //line edits for entering the data manually 
-   
-         Button 
-         { 
-             id: lyricssrcbutton 
-             text: lyricssrcdialog.model.get(lyricssrcdialog.selectedIndex).name 
-             width: parent.width 
-             onClicked: { lyricssrcdialog.open(); } 
-         } 
-   
-         Button 
-         { 
-             id: go 
-             text: "Go!" 
-             width: parent.width 
-             onClicked: 
-             { 
-                 goLoader.source = "ShowLyricsPage.qml" 
-                 pageStack.push(goLoader.item) 
-             } 
-         } 
-     } 
-     ToolBarLayout 
-     { 
-         id: maintoolbar 
-         ToolIcon 
-         { 
-             iconId: "toolbar-back" 
-             onClicked: quitdialog.open() 
-         } 
-     } 
-     SelectionDialog 
-     { 
-         id: lyricssrcdialog 
-         titleText: "Download source" 
-         selectedIndex: 0 
-         model: ListModel 
-         { 
-             ListElement { name: "AZLyrics" } 
-         } 
-     } 
-   
-     QueryDialog 
-     { 
-         id: notimplementeddialog 
-         acceptButtonText: "OK" 
-         message: "Sorry! Not implemented yet!" 
-     } 
-   
-     QueryDialog 
-     { 
-         id: quitdialog 
-         acceptButtonText: "OK" 
-         rejectButtonText: "Cancel" 
-         message: "Are you sure you want to quit MaeLyrica?" 
-         onAccepted: Qt.quit() 
-     } 
-   
- } 
        import QtQuick 1.1
import com.nokia.meego 1.0
Page
{
  //  property int items:  5
   // property int itemheight: screenheight / items - screenheight
    id: mainPage
    tools: maintoolbar
    Loader
    {
        id: goLoader
        onLoaded: console.log("Show lyrics page loaded")
    }
    Loader
    {
        id: selectTrackLoader
        onLoaded: console.log("Select track page loaded")
    }
    EditTrackDataSheet
    {
        id: edittrackdatasheet
    }
    Column
    {
        width: parent.width
        Rectangle
        {
            color: "#4591ff"
            height: 72
            width: parent.width
            Text
            {
                text: "Search for lyrics"
                color: "white"
                anchors
                {
                    verticalCenter: parent.verticalCenter
                    left: parent.left
                    leftMargin: 30
                }
                font.pixelSize: 48
            }
        }
        CheckBox
        {
            id: tracksrc
            text: "Select track from library" // label isn't needed with PageStackWindow
            checked: true
            anchors.horizontalCenter: parent.horizontalCenter
            //checkable: true
        }
        // button for selecting a track from the media library
        Row
        {
            Text
            {
                id: selectedtracktext
                text: "Selected track:  "
            }
            Button
            {
                id: selecttrack
                checkable: false
                text: "<i>No track selected</i>"
                width: parent.width - selectedtracktext.width
                onClicked:
                {
                    if ( tracksrc.checked  )
                    {
                        selectTrackLoader.source = "SelectTrackPage.qml"
                        pageStack.push(selectTrackLoader.item)
                    }
                    else
                    {
                        edittrackdatasheet.open()
                    }
                }
            }
        }
        //line edits for entering the data manually
        Button
        {
            id: lyricssrcbutton
            text: lyricssrcdialog.model.get(lyricssrcdialog.selectedIndex).name
            width: parent.width
            onClicked: { lyricssrcdialog.open(); }
        }
        Button
        {
            id: go
            text: "Go!"
            width: parent.width
            onClicked:
            {
                goLoader.source = "ShowLyricsPage.qml"
                pageStack.push(goLoader.item)
            }
        }
    }
    ToolBarLayout
    {
        id: maintoolbar
        ToolIcon
        {
            iconId: "toolbar-back"
            onClicked: quitdialog.open()
        }
    }
    SelectionDialog
    {
        id: lyricssrcdialog
        titleText: "Download source"
        selectedIndex: 0
        model: ListModel
        {
            ListElement { name: "AZLyrics" }
        }
    }
    QueryDialog
    {
        id: notimplementeddialog
        acceptButtonText: "OK"
        message: "Sorry! Not implemented yet!"
    }
    QueryDialog
    {
        id: quitdialog
        acceptButtonText: "OK"
        rejectButtonText: "Cancel"
        message: "Are you sure you want to quit MaeLyrica?"
        onAccepted: Qt.quit()
    }
}
To copy to clipboard, switch view to plain text mode 
  
Unfortunately, the Row is positioned somewhere in the top (as in screenshot) and should be below the checkbox.
What am I doing wrong? 
Thanks in advance
				
			
Bookmarks