Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-28798

QAction setFont doesn't change menu item's font correctly - Mac OS X Cocoa

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 4.8.3, 5.0.0
    • GUI: Look'n'Feel
    • None
    • Mac OS X 10.6.8, Qt 4.8.3 Cocoa
      Qt 5(0cac0796a0156c1745e2a276c20d4eabb5f88bf8)
    • macOS

    Description

      Build and run the Qt examples/mainwindows/menus/menus.pro project on Windows and on Mac OS X (Cocoa build of Qt).

      On Windows the Edit->Format submenu shows bold and italic menu items with a bold and an italic font because of code like this:

      boldAct = new QAction(tr("&Bold"), this);
      
      QFont boldFont = boldAct->font();
      boldFont.setBold(true);
      boldAct->setFont(boldFont);
      

      On Macintosh those items are rendered in a slightly smaller plain font that is neither bold nor italic.

      Attachments

        1. menuStyleBugQt4.8.png
          menuStyleBugQt4.8.png
          54 kB
        2. MenuStyleQt4.8.3WinOkay.png
          MenuStyleQt4.8.3WinOkay.png
          96 kB
        3. QTBUG-28798.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dedietri Gabriel de Dietrich (drgvond)
            jimprouty Jim Prouty
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes