Bug on Text element



  • I have a very simple Text element as
    @Text {
    id: label
    anchors.centerIn: parent
    text: qsTr("Hello the world!")
    width: 35
    wrapMode: Text.Wrap
    visible: false
    color: "gray"
    font.underline: true
    // textFormat: Text.RichText
    }@
    however, seems that there is a bug which make

    • the first line has correct color and underline
    • second line has wrong color (black) and no underline
    • third line has wrong color (black) but with underline

    Is there anyone having the same problem with me?



  • Could you give the entire code : this one is not visible, actually....



  • full page qml code as requested :-)
    @import QtQuick 1.1
    import com.nokia.meego 1.0

    Page {
    tools: commonTools

    Text {
        id: label
        anchors.centerIn: parent
        text: qsTr("Hello the world!")
        width: 35
        wrapMode: Text.Wrap
        visible: false
        color: "gray"
        font.underline: true
    

    // textFormat: Text.RichText
    }

    Button{
        anchors {
            horizontalCenter: parent.horizontalCenter
            top: label.bottom
            topMargin: 10
        }
        text: qsTr("Click here!")
        onClicked: {
            label.visible = true
        }
    }
    

    }@


Log in to reply
 

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