Home > Enterprise >  Paragraph indent in qml
Paragraph indent in qml

Time:08-07

I need a way a to adopt property text-indent in my qml code. QML Docs says it's supported, but didn't explain how to use it. I'm trying to run something like that (I tried more variants but failed):

    Text{
    width: parent.width
    wrapMode: Text.WordWrap
    textFormat: Text.StyledText
    text: "<text-indent='50px'>Hellow world"
    }

But it doesn't work. Qml sees text-indent in code (or it just see "<>") and doesn't show it in the text label, but still didn't activate it. Maybe this is kinda extra but the same question I can ask about all of tags which I can see in the enter image description here

  • Related