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

Cannot use a Repeater for Item3D elements in Qt 5

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.7.0
    • 5.0.0 Beta 1
    • Qt3D
    • None
    • Ubuntu 12.04, Windows 7
    • Iaf101cfa888bb2c4eab504b0df6b0986c58ad9e2

    Description

      Following qml code on Qt 5 Beta draws nothing:

      import QtQuick 2.0
      import Qt3D 2.0
      import Qt3D.Shapes 2.0
      
      Viewport {
          width: 1024; height: 768
          id: viewport
      
          camera: Camera { eye: Qt.vector3d(-5, 5, 5) }
      
          Repeater {
              model: 3
              Teapot { x: index; scale: 0.5; effect: Effect { color: "green"} }
          }
      
          // Repeater should generate these items:
          // Teapot { x: 0; scale: 0.5; effect: Effect { color: "green"} }
          // Teapot { x: 1; scale: 0.5; effect: Effect { color: "green"} }
          // Teapot { x: 2; scale: 0.5; effect: Effect { color: "green"} }
      }
      

      No errors or warning are displayed. This problem can be seen also in the photoroom example that is supposed to demonstrate the use of Item3D's with QML data models & repeaters.

      Attachments

        Issue Links

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

          Activity

            People

              lemire_p Paul Lemire
              treinio Topi Reiniƶ
              Votes:
              7 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes