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. how in Qt Quick draw line ???

how in Qt Quick draw line ???

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3d canvas2d graphicsquick
2 Posts 2 Posters 404 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.
  • T Offline
    T Offline
    timob256
    wrote on 24 Nov 2021, 08:44 last edited by timob256
    #1

    in freeglut lines drawn like this

       glLineWidth(3);
       glColor3f(1.0f,0.0f,0.0f);
       glBegin(GL_LINES); 
       glVertex2d(-1,  1);
       glVertex2d( 1, -1);
       glEnd()
    

    how in Qt Quick 3D draw line ???

    J 1 Reply Last reply 24 Nov 2021, 08:45
    0
    • T timob256
      24 Nov 2021, 08:44

      in freeglut lines drawn like this

         glLineWidth(3);
         glColor3f(1.0f,0.0f,0.0f);
         glBegin(GL_LINES); 
         glVertex2d(-1,  1);
         glVertex2d( 1, -1);
         glEnd()
      

      how in Qt Quick 3D draw line ???

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 24 Nov 2021, 08:45 last edited by
      #2

      @timob256 I entered "Qt Quick draw line" in Google and got this: https://doc.qt.io/qt-5/qml-qtquick-pathline.html

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      3

      1/2

      24 Nov 2021, 08:44

      • Login

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