Unsolved How to clip QPainterPath/QRect, hiding the outline?
-
Is there a way to clip one painter object by overlaying it with another object, hiding the outline as well as the fill area? If you render text in QPainter then it gets clipped by the bounding box. Is there a way to do the same with the shapes or paths? Something similar to Photoshop clipping mask.
-
@ptitz
QPainter::setClipRegion()A QRegion can be constructed from a QPolygon (which can be created from a QPainterPath) for example.
-
@raven-worx Super, thanks a lot! I've been looking all over docs for shape objects to find this this thing, but couldn't find it. Didn't think about looking at the QPainter.