Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Overlapping brushes with different patterns

$
0
0
Hello, I am making a simple brushing/drawing interface with QGraphicsScene. The strokes are made with addEllipse with various brush sizes and styles, like Qt::Dense{1:7}Pattern. The problem is when a brush is drawn over already painted pixels with a different pattern. It seems like it is painting the union between the two patterns, making the area completely black (using a black colour of the brush) or some denser pattern. What I want is to replace the old pattern with the new brush. Any ideas on how I can do this?

Viewing all articles
Browse latest Browse all 22112

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>