Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Qt3D. Draw dashed 3D line with given thickness



  • Hi Qt3D gurus :-) I need your help.
    I need to draw in 3D simple lines with given thickness and dashed lines... How i can do it? I know, how to made custom mesh for line and i can turn LINES mode like this:

    meshRenderer->setPrimitiveType(Qt3DRender::QGeometryRenderer::Lines);
    

    But how to set thickness and dashed mode? Can you show me simple example please?

    I need somethink, like this:
    alt text



  • o i also encounter the same issue, i draw points instead of dash line ,but it cost too memery .it is not optimal way



  • or u can split one line two more as u want