PDA

View Full Version : space in textBrowser



NewLegend
3rd September 2010, 17:14
Hello to all

How do I put a space in output textBrowser ???

:cool:

Lykurg
3rd September 2010, 17:38
Hey

I also

like to align

text

in a funny
way!

What output do you mean? Do you print it? How? What space? Horizontal or vertical?

NewLegend
3rd September 2010, 18:42
Hey

I also

like to align

text

in a funny
way!

What output do you mean? Do you print it? How? What space? Horizontal or vertical?

as,

ui->textBrowser_8->setPlainText("Sum = " );
How can put space after Sum = ???

squidge
3rd September 2010, 18:53
There is already a space after Sum = ?

Lykurg
3rd September 2010, 19:04
There is already a space after Sum = ?
:D If you use HTML (or it renderes as such by QTextBrowser) use   to be able to show more than one space. Otherwise ensure your text is rendered as a plain text: setTextFormat(Qt::PlainText).