Results 1 to 2 of 2

Thread: QFontDialog always returns 13x Lucida Grande

  1. #1
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QFontDialog always returns 13x Lucida Grande

    I'm on the mac version of Qt ...

    When I do this:

    Qt Code:
    1. QFont font = QFontDialog::getFont( &ok, QFont( "Helvetica [Cronyx]", 10 ), this );
    2. cout << "font: " << font.rawName().toAscii().data() << endl;
    3. cout << "pointsize: " << font.pointSize() << endl;
    To copy to clipboard, switch view to plain text mode 

    I always get:

    font: Lucida Grande
    pointsize: 13
    Even though I don't set it to Lucida Grande 13 every time. I have changed the font and the size.

  2. #2
    Join Date
    Jan 2006
    Location
    Maui, Hawaii
    Posts
    120
    Thanks
    65
    Thanked 4 Times in 4 Posts
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QFontDialog always returns 13x Lucida Grande

    Ah ha ...

    This is a known bug that was fixed in Qt 4.6.1.

    http://bugreports.qt.nokia.com/secur...avigator.jspa?

Similar Threads

  1. Subclassing QFontDialog
    By fsoltanshahi in forum Qt Programming
    Replies: 0
    Last Post: 23rd October 2008, 17:29
  2. Writing System in QFontDialog?
    By ashukla in forum Qt Programming
    Replies: 12
    Last Post: 23rd January 2008, 11:17
  3. app.exec() never returns?
    By stealth86 in forum Qt Programming
    Replies: 3
    Last Post: 17th July 2007, 19:41
  4. QFontDialog - how to resize?
    By anderssonj in forum Qt Programming
    Replies: 2
    Last Post: 19th June 2007, 14:40
  5. Replies: 2
    Last Post: 20th April 2007, 16:36

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.