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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15
    • Quick: Dialogs
    • None
    • Linux/X11

      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.

        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
            kai.li Kai Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes