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

DialogButtonBox enums are not known to qmllint

    XMLWordPrintable

Details

    • All
    • ff6243ec02 (qt/qtdeclarative/dev) 31f7601e14 (qt/qtdeclarative/6.4) 31f7601e14 (qt/tqtc-qtdeclarative/6.4) 9d9c9d321c (qt/qtdeclarative/6.3) 9d9c9d321c (qt/tqtc-qtdeclarative/6.3) 9d9c9d321c (qt/qtdeclarative/6.3.2) c5b40d083f (qt/tqtc-qtdeclarative/6.2)

    Description

      Running qmllint on a Dialog that assigns to standardButtons:

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          width: 500
          height: 600
          visible: true
      
          Dialog {
              visible: true
              footer: DialogButtonBox {
                  standardButtons: DialogButtonBox.Cancel | DialogButtonBox.Ok
              }
          }
      }
      
      Warning: [...] Property "Cancel" not found on type "DialogButtonBox"
          standardButtons: DialogButtonBox.Cancel | DialogButtonBox.Ok
                                           ^^^^^^
      

      In qquickdialogbuttonbox_p.h

        Q_ENUMS(QPlatformDialogHelper::ButtonLayout) 
      

       

      Attachments

        Issue Links

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

          Activity

            People

              mitch_curtis Mitch Curtis
              rgriebl Robert Griebl
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes