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. QPainterPath doesn't store QRect information?

QPainterPath doesn't store QRect information?

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 532 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.
  • G Offline
    G Offline
    Goddard
    wrote on last edited by Goddard
    #1

    I was hoping to have some kind of container that can hold all the painted items and QPainterPath looked like a good choice, but it doesn't have any way to get width and height information for a QRect that was drawn. Also does contains() actually get the image or canvas or an item shape that is drawn is within those coordinates? It seems that contains() actually is just the image/canvas?

    Any way to access the actual object that was drawn? Like in the form QRect without a redeclaration?

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi
      I read the questions as to record
      QPainter drawing instructions and came to think of this
      http://doc.qt.io/qt-5/qpicture.html#details

      QPainterPath is for drawing various paths (shapes) and might be what you need if you are drawing just paths but if you mean other types of drawing/images etc than
      have a look at QPicture.

      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