Transparent image on top of QTextEdit
-
I am trying to figure out the best way to accomplish an image overlay in a QTextEdit. I am looking to put a logo of some sort as background on a QTextEdit (possibly tiled at an angle to keep the image aspect ratio, or just a single image that stretches to the size of the text edit). But I am looking to make the actual logo transparent or barely visible so it doesn't interrupt the user from reading the text in the text edit.
I tried setting a background image in the stylesheet for the text edit, but there there isn't any options for a rotated image / transparency all at once.
Is there any way to do this without custom painting any overriding the paint method on the text edit?
Right now, I have simple stylesheet like so:
@
#text_status {
background-color: white;
background-image: url(:/images/img_logo.png);
}
@