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 678 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.
  • timob256T Offline
    timob256T Offline
    timob256
    wrote on 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 ???

    jsulmJ 1 Reply Last reply
    0
    • timob256T timob256

      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 ???

      jsulmJ Online
      jsulmJ Online
      jsulm
      Lifetime Qt Champion
      wrote on 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

      • Login

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