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

MessageDialog (qt.labs.platform): Dialog Button Documentation wrong

    XMLWordPrintable

Details

    Description

      Looks like the documentation is out of date. The examples are incorrect as is the "buttons" property documentation:

      MessageDialog {
          text: "The document has been modified."
          informativeText: "Do you want to save your changes?"
          buttons: MessageDialog.Ok | MessageDialog.Cancel
          onAccepted: document.save()
      }
      

      MessageDialog.Ok etc. are not available, one must use StandardButton.Ok etc. instead:

      MessageDialog {
          text: "The document has been modified."
          informativeText: "Do you want to save your changes?"
          buttons: StandardButton.Ok | StandardButton.Cancel
          onAccepted: document.save()
      }
      

      I can't understand why the important controls like FileDialog, MessageDialog etc. are still considered as experimental when their older counterparts in QtQuick.Dialogs still depend on the long deprecated QtQuickControls 1.

      Also I consider the native menu support provided by qt.labs.platform as essential for desktop applications.

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            njeisecke Nils Jeisecke
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes