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. Need Advice using QML DataVisualisation or QML QpaintedItem ? .. or not QML ...

Need Advice using QML DataVisualisation or QML QpaintedItem ? .. or not QML ...

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 248 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.
  • L Offline
    L Offline
    Lo Public Name
    wrote on last edited by
    #1

    Hello all

    I would need some advice on witch technologies to use.

    I need to visualize 2D points ( captured real time form laser scanning ) , make to create/edit selections over those points as poly Lines . I will need also to Zoom / pan in the view to edit selection properly.

    I was thinking to use DATAVISUALISATION Scatter3D and orthographic projection to switch back to 2D .
    This way i could benefit from all the pan/rotate/ zoom inbuilt handling of the scene3D . But i see no clue in documentation how to draw polyLine in the scene . Neither to individually change point color

    The other way would be to use QPaintedItem, but i would need to write a lot of stuff from scratch ...

    Any advices ?
    Thanks

    1 Reply Last reply
    0
    • oria66O Offline
      oria66O Offline
      oria66
      wrote on last edited by
      #2

      @Lo-Public-Name i. I had struggled in your position in the past. First, take a look at these articles:

      • https://forum.qt.io/topic/111022/pixel-framebuffer-data-in-c-to-qml-application-using-the-gpu-as-much-as-possible.
      • https://tobiasmarciszko.github.io/custom-drawing-in-qml/t

      From my point of view, do not take the path of Scatter 3D if your point cloud is big. My recommendation is to use a QQuickItem (with the Scenegraph, of course) with a mature implementation like https://github.com/QUItCoding/qnanopainter.

      Believe me, I implemented an application like yours (3mill ~ 7 mill of points in a 2D picture) with QQuickPaintedItem from scratch and the performance was awful unlike the QNanopainter approach (QQuickItem).

      If you have any other doubts let me know.

      The truth is out there

      1 Reply Last reply
      0
      • L Offline
        L Offline
        Lo Public Name
        wrote on last edited by
        #3

        Thanks, i will check.

        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