Hi all,
I know there's a lot of stuff on transparency, but I haven't quite found what I'm looking for.
I've a QLabel. I'd like the baskground to be transparent - that is, it should appear as text 'on the desktop'
this is what I'm doing:
(theMask, above, is a QRegion)Qt Code:
{ setPalette(p); } { setText(text); setPixmap(pixmap); theMask = pixmap.createHeuristicMask(false); //theMask = createMaskFromColor(Qt::darkGreen); setMask(theMask); }To copy to clipboard, switch view to plain text mode
The problem that I can't seem to make a good mask from the text. createHeuristicMask() leaves unmasked 'holes' in the text (the character 'o' is filled, for instance), and createMaskFromColor() doesn't seem to do anything for me. examples are attached.
So, the question, how can I best make a mask for my text.
thanks
K
Bookmarks