On Yau al-Thulatha 27 Muharram 1426 11:26, Lars Knoll wrote:
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.
Surely, you know better than me and M$ but this is why I am telling you this.
http://www.microsoft.com/middleeast/msdn/mirror.aspx
or maybe I have misunderstood their point of coordinate transformation?
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! Will you please tell me the easiest way of how this should be done? I
mean Something like a Dialog box or any widget that would appear in the
top-left corner on LTR and on top-right corner in RTL.
--
Munzir Taha PGP Key available
gpg --recv-keys --keyserver
www.mandrakesecure.net F0671821
Telecommunications and Electronics Engineer
Mandrake Club Member
Maintainer of the OpenBugs Wiki page at
http://arabic-fedora.org/
Maintainer of Fedora Arabic Translation Project
https://listman.redhat.com/mailman/listinfo/fedora-trans-ar
CIW Designer, ICDL, MOUS, Linux+, LPI 101
New Horizons CLC, Riyadh, SA