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

Delegate of ListView/PathView is displayed in states preview of Designer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • Qt Creator 4.1.0-rc1
    • Qt Creator 4.0.0-beta1
    • Quick Designer
    • None
    • Linux, Windows

    Description

      Steps to reproduce:

      • have a kit configured using Qt5
      • create Qt Quick 2 UI from template
      • open the qml file and switch to 'Designer'
      • set background for the Rectangle item to something else than white
      • pull a ListView and/or PathView item into the preview

      Current result:

      • delegate of the view(s) is displayed in the top left corner of the states preview

      Expected result:

      • delegate is not visible inside the states preview
      import QtQuick 2.2
      
      ListView {
          id: listView
          objectName: "listViewObjectName"
          delegate: Item {
              id: delegateItem
              objectName: "delegateItemObjectName"
              Rectangle {
                  color: "red"
                  height: 100
                  width: 100
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

              thohartm Thomas Hartmann
              cstenger Christian Stenger
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes