[Solved]Set Background Image in QtextEdit
-
Can anybody guide me Which is the best way to set background image in QtextEdit?
-
@textEdit->setStyleSheet("
"background-image: url(:/backgroundLeaves.jpg);");@ -
Thanks!
See i used a logo as a background.
when the size of textedit increase it will display multiple logo. -
Hi,
you may control the appearance with:
background-repeat
background-origin
background-clip
"Qt Style Sheets Reference: ":http://qt-project.org/doc/qt-5/stylesheet-reference.html -
Or set the border image. That is resized automatic!!