[Fedora-trans-ar] Re: Arabic issue #26: The origin in RTL layout should be positioned at the right edge of the window
Lars Knoll
lars at trolltech.com
Tue Mar 8 08:26:33 UTC 2005
On Tuesday 08 March 2005 07:06, Munzir Taha wrote:
> Qt Version: qt-x11-opensource-4.0.0-b2-snapshot-20050302
> System: Linux localhost 2.6.10-1mdk i686 AMD Athlon(tm) 64 Processor 3200+
>
> CODE:
> qPushButton->setGeometry(0, 0, 75, 100);
>
> PROBLEM:
> After an application has set RTL layout, the origin should be positioned at
> the right edge of the window or device, and the number representing the
> horizontal coordinate should increase as you move left.
No. This would break a huge amount of code out there.
Qt's coordinate system doesn't change when the layout direction changes. If we
did so, you could be sure that almost everything would break and no
application developer would manage to write apps that work both LTR and RTL.
The solution to this is to not hardcode geometries of subwidgets but use
layouts which do all the work for you. If you hardcode the position you get
what you ask for.
Lars
More information about the Fedora-trans-ar
mailing list