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
Forum Updated to NodeBB v4.3 + New Features

Creating polygon using QSGGeometry

Scheduled Pinned Locked Moved Mobile and Embedded
scene graphqmlqsggeometry
1 Posts 1 Posters 856 Views 1 Watching
  • 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 25 Mar 2015, 17:37 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

    1/1

    25 Mar 2015, 17:37

    • Login

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