PDA

View Full Version : text indent with wrap



linuxsong
21st February 2011, 10:19
Hi,everyone

How can implement text indent with text item on line first ?
For example, like this:

(indent 20px) text text text text text texttext text
text texttext texttext texttext texttext texttext.

I can get the same result with the following code, but it is not too accurate.(use some blank)
Text {
width: 200
wrapMode: Text.Wrap
text: "  " + " text text text text text texttext text text texttext texttext texttext texttext texttext.."
}

What's the right way to realize it ?

many_many
26th July 2011, 15:14
mp_textEdit->setText("<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; text-indent:20px;\">the showing text</p>");