letsfindaway / OpenBoard

I'm using this fork to contribute features and fixes to the upstream project. In order to create good pull requests, I'm rebasing my feature branches, squashing and reordering commits, etc. If you fork this repository be aware that my development branches may rewrite history without prior notice.
http://openboard.ch/
GNU General Public License v3.0
9 stars 0 forks source link

Assure transparent widget background #107

Closed letsfindaway closed 2 years ago

letsfindaway commented 2 years ago

I have some situations when the background of a widget is not transparent, but very light gray. I am unable to tell when this happens, but there seems to be a solution.

When creating the QWebEngineView, set the following properties:

    mWebEngineView->setAttribute(Qt::WA_TranslucentBackground);
    mWebEngineView->setStyleSheet("background:transparent");

In tests, even one of those helped. But according to https://stackoverflow.com/questions/28183738/transparent-background-in-qwebenginepage it should not hurt to set all of them.

letsfindaway commented 2 years ago

closed as the associated PR was merged.