PDA

View Full Version : How to embed QTextBrowser in QGraphiscView with its background being transparent?



NameZero912
21st August 2012, 18:08
Hi,

how can I make the background of the embedded QTextBrowser widget (which is embedded in a QGraphicsProxyWidget, of course) transparent? Note that methods like setAutoFillBackground(false) called on either the widget itself or the proxy widget won't do anything... Also, CSS transparency, i.e. background-color:rgba(0,0,0,0); won't work either. I'm looking for approved solutions :(

I'm using QT 4.8.2, Windows 7 32/64-bit.

Cheers!

NameZero912
22nd August 2012, 08:47
Seems to be solvable only via bugs (at first I didn't want to consider this possibility... but well. See here! (http://www.developer.nokia.com/Community/Discussion/showthread.php?205958-QTextBrowser-with-transparent-background&p=760075&viewfull=1#post760075)