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

Cannot use a Repeater for Item3D elements in Qt 5

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes