Page 2 of 2 FirstFirst 12
Results 21 to 26 of 26

Thread: Text does not drawn properly in RTOL locale on Mac OS X

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

    Default Re: Text does not drawn properly in RTOL locale on Mac OS X

    Quote Originally Posted by sanjayshelke View Post
    Which message box your talking about in designer app?
    Any

    I can see none of the text displayed on designer app is screwed up.
    So font metrics should be calculated properly. Otherwise sizeHint()s of labels would be incorrect and labels and layouts would be squeezed. I'm still convinced the problem is not there in QFontMetrics.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #22
    Join Date
    Jul 2007
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Text does not drawn properly in RTOL locale on Mac OS X

    This may not be correct way to see the designer app for verifying the said problem.
    It is better to try out this with customizing the QGraphicsItem to draw the "1000" number.
    If it is not too much headache for you can you please try it.

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

    Default Re: Text does not drawn properly in RTOL locale on Mac OS X

    Quote Originally Posted by sanjayshelke View Post
    This may not be correct way to see the designer app for verifying the said problem.
    Why not?

    It is better to try out this with customizing the QGraphicsItem to draw the "1000" number.
    If it is not too much headache for you can you please try it.
    I don't have a Mac, so this won't do you any good.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #24
    Join Date
    Jul 2007
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Text does not drawn properly in RTOL locale on Mac OS X

    May be designer app does load qt_ar.qm or qt_he.qm

    I have written sample app which has customized the qgraphicsItem to draw "1000 1/2".
    I have also written one more application which has customized QWidget to draw "1000 1/2".

    And both has same problem on Mac OS X in RTOL locale.

    If there is any problem in my code then this should not work on windows in any locale.


    Please have a look on the sample applications i have attached here.
    Attached Files Attached Files

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

    Default Re: Text does not drawn properly in RTOL locale on Mac OS X

    Quote Originally Posted by sanjayshelke View Post
    If there is any problem in my code then this should not work on windows in any locale.
    That's not true. Some behaviour might be different on both systems and this difference might cause your problem not to reveal itself. If you are convinced this is a bug then simply report it to the Trolls - your QFontMetrics example should do the trick.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  6. #26
    Join Date
    Jul 2007
    Posts
    90
    Thanks
    2
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Text does not drawn properly in RTOL locale on Mac OS X

    ok. Really thanks for you time wysota.
    I will report the bug to Trolltech then.

Similar Threads

  1. Unhandled exception in qatomic
    By NewGuy in forum Qt Programming
    Replies: 14
    Last Post: 23rd July 2013, 09:49
  2. HTML text drawn with QPainter::drawText()
    By MarkoSan in forum Qt Programming
    Replies: 1
    Last Post: 19th January 2008, 01:23
  3. Replies: 1
    Last Post: 12th November 2006, 16:56

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
  •  
Qt is a trademark of The Qt Company.