I am trying to display a QWebView where the content will have round corners, so I need a transparent background to hide the original white corners. I use the "trick" I found here
This did not work for me, so I added
this->view.setAttribute(Qt::WA_TranslucentBackground);
and now it works as expected on Linux (Ubuntu) and Windows, but not Mac OS X. Mac OS X just keeps showing black angles. I tried setting a style sheet like this
this->view.setStyleSheet("background: transparent;");
or
this->view.setStyleSheet("background-color: none");
or
this->view.setStyleSheet("QWidget { background: transparent; }");
But nothing happened. Is there any way to make this work? I am using Qt 5.0.2.
source share