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

qmllint warns about all members of model index

    XMLWordPrintable

Details

    • e2864d6aa9 (qt/qtdeclarative/dev) aab97fa528 (qt/qtdeclarative/6.2) 1cd6375113 (qt/qtdeclarative/6.3) aab97fa528 (qt/tqtc-qtdeclarative/6.2) 1cd6375113 (qt/tqtc-qtdeclarative/6.3)

    Description

      This code:

      import QtQuick
      Item { 
        property ItemSelectionModel selectModel;
        function currentRow() {
          return selectModel.currentIndex.row;
        }
      }
      

      Produces:

      Type "QModelIndex" of base "currentIndex" not found when accessing member "row"
      

      Attachments

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

        Activity

          People

            qtqmlteam Qt Qml Team User
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes