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. Overlapping brushes with different patterns

Overlapping brushes with different patterns

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 610 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.
  • H Offline
    H Offline
    hlhl
    wrote on last edited by
    #1

    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?

    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