Home > Mobile > Qt QGraphView transparent item cascade problems
Qt QGraphView transparent item cascade problems
Time:09-16
Ladies and gentlemen, the younger brother when using Qt QGraphView draw each rectangle item is transparent only border is black, when there is a time an item is placed on the top, because is transparent all will see the item at the bottom of the frame, this and do not conform to the demand, how to deal with to make the following item obscured parts of the frame is transparent, as shown:
3 of them in the top, but because is transparent, will see the underlying Item obscured parts of the frame. How to make this part of the frame is the arrow pointing in the direction of the frame is transparent?
CodePudding user response:
Graphview not clear, the painter is a clear pattern, to clear again, drawing again
CodePudding user response:
You the demand contradiction, and transparent, and otherwise transparent block below the z axis, if there are overlapping primitives, thus determine the top do fill opacity with primitives
CodePudding user response:
Item can't do some transparent parts processing, opaque unless you rewrite QGraphicsItem paint function, and then determine whether the item in it toplevel, draw a border around again,