I can draw a solid-color line easily in Qt, but now I need to draw a line by inverting the original pixels, or perhaps XOR-ing the QBrush.
I'm asking for the equivalent of SetROP2(R2_NOT)
or SetROP2(R2_XORPEN)
in Win32.
Is that possible using Qt? I want to do it so I can easily "unpaint" it later.