I have a qpainter painting a certain image over an entire area. Now, i want to erase part of it completely so i can basically see the desktop behind it kind of thing. i am currently using:
painter.eraseRect(0, 0, width()/2, height()/2)
and it just makes a white background in that part of the ui. I have tried looking around to forums on setbackground or setattribute:
setBackgroundRole(QPalette::Base);
setAttribute(Qt::WA_NoSystemBackground);
but these seem to have no effect, and I can't seem to get that white 'erased' area to be completely gone or transparent. Might be a simple fix, any ideas?
Bookmarks