PDA

View Full Version : changing letter spacing in QLabel



Charvi
25th October 2012, 11:44
Hi all,

I need to change the letter spacing of the text I have entered in QLabel in Qt Designer. I tried using the 'letter-spacing:2px' in CSS of QLabel but it doesn't change anything. Any idea how to do this ?

-Charvi.

Ashkan_s
25th October 2012, 14:18
I don't know what version of Qt you are using but I can't find this property in Qt's (4.7, 4.8) doc and it results in erros (Qt 4.7) if try to use it. You can probably use QFont::setLetterSpacing and QWidget::setFont if you are not forced to use stylesheets.

Charvi
29th October 2012, 09:21
Hi ashkan_s, thanks for your answer.

Need to do it through style sheets. any ideas ?