Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. 3D line plot using QML

3D line plot using QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
6 Posts 3 Posters 1.4k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    fem_dev
    wrote on last edited by fem_dev
    #1

    Hi, I'm developing a Qt Desktop C++ GUI application using Qt Creator IDE (Qt 5.13) and I don't know nothing about QML programming.

    Inside my C++ application, I will have to create a function that generates a 3D LINE plot like this example image below:

    9111009c-c917-4e3b-8008-28cebf0f960a-image.png

    Besides that, I need to interact with the plotted 3D data too:

    • 3D point mouse selection
    • 3D rotation
    • Zoom

    QUESTIONS:
    a) Is it possible to do it using QML?
    b) Is there any source-code example about 3D LINE plot (not a 3D surface)?

    Pablo J. RoginaP 1 Reply Last reply
    0
    • F fem_dev

      Hi, I'm developing a Qt Desktop C++ GUI application using Qt Creator IDE (Qt 5.13) and I don't know nothing about QML programming.

      Inside my C++ application, I will have to create a function that generates a 3D LINE plot like this example image below:

      9111009c-c917-4e3b-8008-28cebf0f960a-image.png

      Besides that, I need to interact with the plotted 3D data too:

      • 3D point mouse selection
      • 3D rotation
      • Zoom

      QUESTIONS:
      a) Is it possible to do it using QML?
      b) Is there any source-code example about 3D LINE plot (not a 3D surface)?

      Pablo J. RoginaP Offline
      Pablo J. RoginaP Offline
      Pablo J. Rogina
      wrote on last edited by
      #2

      @fem_dev not that I've used it myself, and also it's an old project as it seems, but maybe Qwt3DPlot may help you somehow.

      Upvote the answer(s) that helped you solve the issue
      Use "Topic Tools" button to mark your post as Solved
      Add screenshots via postimage.org
      Don't ask support requests via chat/PM. Please use the forum so others can benefit from the solution in the future

      F 1 Reply Last reply
      0
      • Pablo J. RoginaP Pablo J. Rogina

        @fem_dev not that I've used it myself, and also it's an old project as it seems, but maybe Qwt3DPlot may help you somehow.

        F Offline
        F Offline
        fem_dev
        wrote on last edited by
        #3

        @Pablo-J-Rogina I tried, but it is stoped in time in Qt 3 and 4...and it doesn't have a 3D line plot...

        1 Reply Last reply
        0
        • fcarneyF Offline
          fcarneyF Offline
          fcarney
          wrote on last edited by
          #4

          QSGGeometry
          "Vertices can be as simple as points defined by x and y values or can be more complex where each vertex contains a normal, texture coordinates and a 3D position."

          Check out the "Scene Graph - Graph" demo. You "should"(tm) be able to extend that to 3D. I have used it for 2D myself, but not yet 3D. YMMV

          C++ is a perfectly valid school of magic.

          1 Reply Last reply
          0
          • fcarneyF Offline
            fcarneyF Offline
            fcarney
            wrote on last edited by fcarney
            #5

            I don't know what it would take to rotate the view though.

            Edit:
            transform

            C++ is a perfectly valid school of magic.

            1 Reply Last reply
            0
            • fcarneyF Offline
              fcarneyF Offline
              fcarney
              wrote on last edited by
              #6

              Played QSGNode based code over the weekend. I think I saw something about each node having a transform. So you could build up a scene controlled by one QSGNode similar to the line drawing demo. Then transform that to rotate that within the scene.

              C++ is a perfectly valid school of magic.

              1 Reply Last reply
              0

              • Login

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved