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

Impossible to have native macOS message box when using style sheets

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.6.2
    • None
    • macOS

      Since https://codereview.qt-project.org/c/qt/qtbase/+/525424 (a result of https://bugreports.qt.io/browse/QTBUG-120054), it appears to be impossible to raise native dialogs when a style sheet is set. While it might make sense to not default to the new behavior to avoid breaking changes, there are definitely scenarios where one would prefer the native dialog over a styled non-native one (a native dialog generally fits the system better than any non-native one).

      Currently our only solution to this appears to be reverting the above commit, thus carrying patches downstream.

      It would be great to be able to have the option to get the native dialog back, even when there's a stylesheet applied to the entire app; or alternatively even see a revert on the above commit since the opposite option already exists (setting Qt::AA_DontUseNativeDialogs on 6.5 or Option::DontUseNativeDialog on 6.6 and newer).

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            sebastianbeckmann Sebastian Beckmann
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes