Hello,
I'm trying to put a background image beside some qlistview widgets. So I think that I've to made them semitransparent.
I've tried different aproaches but I can't get a semitransparent widget.
How can I do it?
Thanks in advance.
Hello,
I'm trying to put a background image beside some qlistview widgets. So I think that I've to made them semitransparent.
I've tried different aproaches but I can't get a semitransparent widget.
How can I do it?
Thanks in advance.
If you want a semitransparent list view the use QWidget::setWindowOpacity(0.5);
Regards
If i try the following code, I can't see the mainwindow's yellow color. But I can if I remove the setCentralWidget(a);
Qt Code:
setStyleSheet("QMainWindow {background-color: yellow}"); a->setWindowOpacity(0.5); setCentralWidget(a);To copy to clipboard, switch view to plain text mode
I want something like the attatched image, with designer I've selected QlistWidgets frame, as Qt::StyledFrame, and in this case it works, but i can't get it coding.
Bookmarks