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

If inherit QApplication, the MessageDialog accepted signal is emitted twice.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: 5.15
    • Fix Version/s: None
    • Component/s: Quick: Dialogs
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      There is difference between WidgetMessageDialog and DefaultMessageDialog.

      If inherit QApplication, it will use WidgetMessageDialog as MessageDialog QML type.

      If not inherit QApplication and use QGuiApplication instead of it, it will use DefaultMessageDialog as MessageDialog QML type.

      The accepted() signal will be emitted twice with WidgetMessageDialog  but once with DefaultMessageDialog .

      I think it is a bug with WidgetMessageDialog.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            kai.li Kai Li
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes