PDA

View Full Version : Push Button not displaying text with icon when its layout is set to Qt::RightToLeft



moosa
31st July 2011, 10:52
Hi all,

I have a push button which has a text and an icon.
The push button is displayed correctly (text with icon) until I change the layout direction using:


ui->pb_click->setLayoutDirection(Qt::RightToLeft);

Once I do that, the button icon is displayed, but no text is displayed.

I've attached the images which show this issue.

Any help would be appreciated.

moosa
1st August 2011, 07:17
Forgot to mention that I'm using Qt SDK 1.1.2 64 bit for Linux. I am using Ubuntu 10.04 distribution.
Any help would be highly appreciated !