[Solved] Symbian debug: graphics error



  • @ import QtQuick 1.0

    Rectangle
    {
    id: contenitore

    Image
    {
        source: "../LebendigeLieder/sfondo.jpg"
        anchors.top: contenitore.top
        anchors.left: contenitore.left
        id: sfondo
        z: -1
    }
    
    Rectangle
    {
        color:"red"
        width: 130; height: 30
        anchors.right: sfondo.right
        z: 1
    

    id: rettangolo
    }
    }
    @
    how to set "rettagolo" on the topRight margin of the screen of a phone?



  • If I understand your question correctly, the below code should hep???
    @import QtQuick 1.0

    Rectangle
    {
    id: contenitore

    Image
    {
        source: "../LebendigeLieder/sfondo.jpg"
        anchors.top: contenitore.top
        anchors.left: contenitore.left
        id: sfondo
    }
    
    Rectangle
    {
        color:"red"
        width: 130; height: 30
        anchors.right: contenitore.right
        anchors.top : contenitore.top
        id: rettangolo
    }
    

    }@



  • yes, it right. thank you!


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.