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

Qt3D Line drawing not working properly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 5.7.0
    • Qt3D 1.0, 5.7.0
    • Qt3D
    • None
    • Windows 7, Qt 4.8.1, Qt3D 1.0

    Description

      The following code draws nothing in the view port:

              Viewport{
                  id: viewPort
                  anchors.top: parent.top
                  anchors.left: controlPane.right
                  anchors.right: parent.right
                  anchors.bottom: parent.bottom
                  Line {
                      vertices: [
                         0, 0, 0,
                         1, 0, 0,
      
                      ]
                      width: 10
                  }
              }
      
      

      It seems this problem exists in Qt3D 1.0 as well as 2.0.

      Also, the documentation seems to be incorrect:

      http://doc-snapshot.qt-project.org/5.0/qml-line.html

      "the following QML code draws a line between point (0,0,0), (1,1,1), then to (-1,-1,-1).", but in the source code the point values are different.

      Attachments

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

        Activity

          People

            sergey.dubitskiy Sergey (closed Nokia identity) (Inactive)
            z35liu Zheng Liu (closed Nokia identity) (Inactive)
            Votes:
            4 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes