Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Creating polygon using QSGGeometry

Creating polygon using QSGGeometry

Scheduled Pinned Locked Moved Mobile and Embedded
scene graphqmlqsggeometry
1 Posts 1 Posters 849 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
    literA2
    wrote on last edited by literA2
    #1

    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
    1

    • Login

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