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

QMessageBox on Mac doesn't include the app icon with its Standard Icon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Invalid
    • Affects Version/s: 4.6.0
    • Fix Version/s: None
    • Component/s: GUI: Look'n'Feel
    • Labels:
      None
    • Platform/s:
      macOS

      Description

      Product
      Qt
      Function
      Painting
      Version
      4.6.0-tp
      Platform
      Mac OS X
      Platform details
      Mac OS X 10.5.8, also tested on Mac OS X 10.6 - same failure.
      Compilers
      GCC
      Compiler details
      Subject
      QMessageBox doesn't include the app icon with its StandardIcon
      Steps to reproduce / test case
      run the examples/standarddialogs code, that comes with qt.

      in Qt4.5.2, the critical dialog shows the larger yellow triangle, and has the application icon overlaid on top of this, scaled down, at the bottom right - this is correct in terms of the Mac OS X look & feel guidelines - and mimics correctly the behaviour of cocoa applications that use the NSAlert API.

      with the other error styles: Information, Question and Warning - the Qt4.5.2 system displays only the application icon with no overlay (also correct).

      The bugs in Qt4.6 are:

      • no application icon is shown in the QMessageBox dialog
      • no yellow exclamation point with app icon overlay is shown with the QMessageBox::Critical style
      • Warning, Information and Question styles show an icon in the QMessageBox
        More information
        I've attached a cocoa app showing the different styles, pretty similar to the StandardDialog example code in Qt.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            • Assignee:
              vfm Thierry Bastian (closed Nokia identity) (Inactive)
              Reporter:
              edie Daron Andrew Edie (Inactive)
            • Votes:
              9 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes