Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to draw this shape
Qt 6.11 is out! See what's new in the release blog

How to draw this shape

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.2k 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.
  • V Offline
    V Offline
    vietnorm
    wrote on last edited by
    #1

    What would be the best way to draw this shape (the area filled with blue, not the entire shape):

    !http://i56.tinypic.com/rbmaeb.png(shape)!

    I also need to be able to interact with it (like resize or move it by dragging), so I assume this should be a QGraphicsItem, am I right?

    1 Reply Last reply
    0
    • D Offline
      D Offline
      dangelog
      wrote on last edited by
      #2

      No, you can draw it pretty much anywhere you want (even on an ordinary QWidget). About the actual drawing: a filled QPainterPath?

      Software Engineer
      KDAB (UK) Ltd., a KDAB Group company

      1 Reply Last reply
      0

      • Login

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