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

QModelIndex is not a type

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • 6.2.12, 6.5.6, 6.6.3
    • 6.6.1
    • QML: Compiler
    • None
    • Linux/X11

    Description

      This simple example does not compile with 6.6.1.

      import QtQuick
      import QtQml.Models
      Window {
          width: 640
          height: 480
          visible: true
          title: qsTr("Hello World")
          function modelIndex(index: int): QModelIndex {
               return dm.modelIndex(index)     
          }
          DelegateModel {
               id: dm     
          }
      } 

       

      If there is any addition import neccessary it is not documented 

      Attachments

        Issue Links

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

          Activity

            People

              qtqmlteam Qt Qml Team User
              tobiasb Tobias Bräutigam
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes