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

QModelIndex is not a type

XMLWordPrintable

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

      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 

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes