Hi :

I'm trying a camera preview tool under linux. It got puzzled when I want to tranlucent the toolbar widget.

I used the QLabel::winId() to display the video from the camera. A toolbar is needed to be translucent on the top level. I use setStyleSheet("background-image:url(./images/translucent.png)") to set the toolbar background be a translucent image. And I'm sure the toolbar is really translucent if the QLabel widget only displayed a picture by QLabel::setPixmap().

But when it displayed the video from winId(), the toolbar always has a default gray colorunder the background. And it can't be translucent. I doubt the winid() and common widget are different display mechanism. Thus how can i translucent the toolbar widget above the QLabel::window()? Any advice is appreciated!