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

MessageDialog button enum is not exposed in a way that qmllint approves

XMLWordPrintable

      $ qmllint messagedialog.qml  
      Warning: messagedialog.qml:13:32: Property "Close" not found on type "QQuickMessageDialog"
      
              buttons: MessageDialog.Close
      
                                     ^^^^^
      
      

      but the docs recommend this syntax

      https://doc-snapshots.qt.io/qt6-dev/qml-qtquick-dialogs-messagedialog.html#buttons-prop

       buttons: MessageDialog.Close
      

      Found while trying to fix QTBUG-100839 and I think it's the same sort of thing: the enum is QPlatformDialogHelper::StandardButtons, but can QML tooling see it?

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

            sami.shalayel Sami Shalayel
            srutledg Shawn Rutledge
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes