Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-19190

QtCreator crash in Design when codes a Listview delegate

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • None
    • Qt Creator 4.4.1, Qt Creator 4.5.0-rc1
    • Editors, Quick Designer
    • None

    Description

      On Design mode, when a ListView is trying to put a delegate, QT Creator crashes.

      Steps:

      • Create a QML with this code:

       

      import QtQuick 2.4
      import QtQuick.Layouts 1.3
      ColumnLayout {
          width: 400
          height: 400
          ListView {
              width: parent.width
              Layout.fillHeight: true
              Layout.fillWidth: true
          }
      }
      
      
      
      • Open it with the Designer.
      • Choose to view both, the design and the code.
      • On the code, put "delegate: Rectangle {".
      • import QtQuick 2.4
        import QtQuick.Layouts 1.3
        ColumnLayout {
            width: 400
            height: 400
            ListView {
                width: parent.width
                Layout.fillHeight: true
                Layout.fillWidth: true
                delegate: Rectangle {
            }
        }
        
        
      • When press enter after {, creator crashes.

       

      Attachments

        1. beforeCrash.PNG
          beforeCrash.PNG
          50 kB
        2. crash.PNG
          crash.PNG
          52 kB
        For Gerrit Dashboard: QTCREATORBUG-19190
        # Subject Branch Project Status CR V

        Activity

          People

            tjenssen Tim Jenssen
            lqsa lqsa
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes