qt - Phonon.VideoWidget doesn't display with WA_TranslucentBackground property set -


i'm building small video player pyside application, process i've done on numerous projects before. however, parent window videowidget has wa_translucentbackground property set, in turn causes videowidget disappear.

current code, prevents videowidget being shown (audio still plays):

class parent(object): def setupui(self, parent):     parent.setobjectname("main")     parent.setwindowflags(qtcore.qt.framelesswindowhint)     parent.setattribute(qtcore.qt.wa_translucentbackground) 

code correctly show videowidget:

class parent(object): def setupui(self, parent):     parent.setobjectname("main")     parent.setwindowflags(qtcore.qt.framelesswindowhint)     #parent.setattribute(qtcore.qt.wa_translucentbackground) 

the obvious solution not have translucent parent window, i'd prefer maintain translucent window if possible. there simple/known fix issue?

edit: this post explores issue under c++; appears due qpainter's composition mode. have idea how change phonon's videowidget qpainter composition mode?


Comments

Popular posts from this blog

Django REST Framework perform_create: You cannot call `.save()` after accessing `serializer.data` -

Why does Go error when trying to marshal this JSON? -