PDA

View Full Version : make transparent a QTextEdit



qlands
6th October 2011, 14:15
Hi,

I know that there are numerous post about transparent widgets but I cannot make it work, I tried:


ui->textEdit->viewport()->setAutoFillBackground(false);

Thanks for the help.

Lykurg
6th October 2011, 14:47
Try to alter the palette of the edit.

qlands
6th October 2011, 15:30
ok. To what value? or how?

Thanks.

Lykurg
6th October 2011, 15:40
To a transparent value, I guess. See QPalette::setColor() and QWidget::palette().