Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Creating polygon using QSGGeometry

    Mobile and Embedded
    scene graph qml qsggeometry
    1
    1
    585
    Loading More Posts
    • 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
      literA2 last edited by literA2

      Hi,

      I'm a beginner in QML, please bear with me. :) This is my first attempt to use scene graph instead of using QPainter.

      After doing some research on the internet, I can't find an example in creating a polygon and a rounded rectangle in scene graph using QSGGeometry.
      I tried using vertexDataAsPoint2D in creating a polygon however I can't connect the vertices.
      And you please include also how to add text on nodes.
      Can you please provide a sample that I can follow.

      Thanks.

      1 Reply Last reply Reply Quote 1
      • First post
        Last post