Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. Is there a workaround for retrieving/creating a QPainterPath from existing widgets?
Forum Updated to NodeBB v4.3 + New Features

Is there a workaround for retrieving/creating a QPainterPath from existing widgets?

Scheduled Pinned Locked Moved Unsolved Qt for Python
1 Posts 1 Posters 187 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.
  • M Offline
    M Offline
    Mizmas
    wrote on 10 Feb 2025, 17:44 last edited by Mizmas 2 Oct 2025, 17:49
    #1

    I want to mess around with creating custom QGraphicsEffects for existing widgets.

    I want to be able to retrieve or create the QPainterPath of a target widget (it's shape, not the bounding box), but Qt doesn't provide a direct method to do so.

    It's possible to retrieve the pixmap of the target widget with self.sourcePixmap(Qt.CoordinateSystem.DeviceCoordinates) , so maybe there's some workaround I haven't found to convert or create a QPainterPath from that pixmap?

    1 Reply Last reply
    0

    1/1

    10 Feb 2025, 17:44

    • 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