PDA

View Full Version : left alignment for pushbutton text



BalaQT
18th September 2009, 17:51
hi
how to set left alignment for pushbutton's text property

Thnks
Bala

BalaQT
19th September 2009, 08:17
hi,
can i use HTML format text in pushbutton for left alignment?

wysota
19th September 2009, 09:42
hi,
can i use HTML format text in pushbutton for left alignment?

No. You can use QwwRichTextButton (http://www.wysota.eu.org/wwwidgets) for that. Regular push buttons are always centered.

BalaQT
19th September 2009, 09:50
Thnks wysota,
i will try ur widget.

What is the best way to align the text in PUSHBUTTON?
Is it possible to set the text alignment in stylesheet for pushbutton?

Thnks
Bala

wysota
19th September 2009, 13:32
What is the best way to align the text in PUSHBUTTON?
Implement your own button class.


Is it possible to set the text alignment in stylesheet for pushbutton?

I don't think so but feel free to try.

BalaQT
19th September 2009, 14:49
Thnks wysota
Bala

bremer
20th September 2009, 12:44
What's about this:


button->setStyleSheet("Text-align:left");

BalaQT
22nd September 2009, 09:41
excellent bremer.

its working

Thankz for ur excellent support.

Bala