Results 1 to 4 of 4

Thread: setDirectionLayout problems

  1. #1
    Join Date
    May 2007
    Posts
    16
    Thanked 1 Time in 1 Post

    Default setDirectionLayout problems

    In my code I am using setLayoutDirection(Qt::RightToLeft) function. Layout changing from left to right but text is not changing properly.

    Example:
    Hello Qt! (In Left to right Layout)
    !Hello Qt (In Right to Left Layout) instead of Hello Qt!

    If text is ending with any special character like ., !,( etc..., and after changing the layout to Right to Left then text appearance is not proper.

    examples:
    1) Open. (LeftToRight)
    .Open (RightToLeft) It should be Open.
    2) Open File... (LTR)
    .Open File.. (RTL)
    3) Hello! (LTR)
    !Hello (RTL)

    If anybody knows solution to above problem, please send me a mail.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: setDirectionLayout problems

    Usually if the layout direction is changed, it's because the application is asked to use a right-to-left language and that implies that a translation to that language is available and is getting loaded. So the solution is to provide and apply a translator file for the right-to-left layout.

  3. #3
    Join Date
    May 2007
    Posts
    16
    Thanked 1 Time in 1 Post

    Default Re: setDirectionLayout problems

    Hi,
    Thank you very much for your immediate reply.

    Could you please tell me, how to use translator file.. Bcoz I am new to QTopia programming...

    It would be great, if your provide some examples.

    Thanks and Regards
    C V Rao

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: setDirectionLayout problems


Similar Threads

  1. Replies: 2
    Last Post: 8th March 2007, 22:22
  2. Problems with Unicode(UTF8)
    By cristiano in forum Qt Programming
    Replies: 15
    Last Post: 5th December 2006, 12:33
  3. Utf8 problems
    By cristiano in forum Qt Programming
    Replies: 5
    Last Post: 11th November 2006, 00:14
  4. QT4 Plugins - problems, problems
    By NormanDunbar in forum Qt Programming
    Replies: 6
    Last Post: 9th May 2006, 15:39
  5. problems with Opengl
    By SlawQ in forum Qt Programming
    Replies: 4
    Last Post: 12th February 2006, 22:49

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.