[Qt-interest] QCheckBox alignment

Stephen Jackson spjackson42 at gmail.com
Wed Feb 4 12:32:24 CET 2009


On Wed, Feb 4, 2009 at 7:40 AM, Zeljko wrote:
> Hi,
>
> Is it possible to have QCheckbox "box" on the opposite (right) side of
> text ?
> I mean:
> now: [x] This is checkbox text
> wanted: This is checkbox text [x]
>
> tnx.
>
> zac
>

http://doc.trolltech.com/4.4/qwidget.html#layoutDirection-prop

checkbox->setLayoutDirection(Qt::RightToLeft);

Regards,

Stephen Jackson



More information about the Qt-interest-old mailing list