Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.4, 4.8.0, 5.0.1
-
None
-
qt4: 9b0922e64152bd4cd06932df247a5f80e9d069cb, qt5/qtbase/stable: f1e681bed21e131864fe1e1c91679f7a56b06823
Description
There seems to be a bug with setting a background image in QTextEdit.
This works under Linux environment but not in Windows:
QTextEdit *edit =new QTextEdit; edit->setStyleSheet("background-image: url(image.png);");
With this workaround background image can be seen under Windows, but background color is not shown as red.
edit->setStyleSheet("background-color: red; background-image: url(image.png);");