how to set background transparent of button, lineedit?
-
Hi,
IIRC,
setAttribute(Qt::WA_TranslucentBackground);
is what you are looking for. -
Dont set directly on LineEdit
Set on its parent. (dialog/mainwind)
Then it works.
Or set as no Type
Try right click LineEdit, change stylesheet, and paste
background:transparent;
directly also works.For some reason, i have yet to learn, setting
QLineEdit
{
background:transparent;
}
directly on Edit. Do not work. (for me).
Only via parent. -
hi
try this test proj
https://www.dropbox.com/s/kfzvp58ko4iz53n/my_trans_edit.zip?dl=0 -
ok, u must override it from the other stylesheet then ?
Else i dont know.Is that the sample ?
No changes, just run it?
If yes, then what platform you are on, might not support it or the
Qt version you are using is having a bug on that platform.