fix: suppress paintEngine warnings from mpv native window embedding
This commit is contained in:
1 parent
025d5afe1f
commit
39bbfedb9d
1 file changed
+5
@@ -452,6 +452,11 @@ class MpvWidget(QFrame):
|
||||
self.setAttribute(Qt.WidgetAttribute.WA_PaintOnScreen, True)
|
||||
self._player = None
|
||||
|
||||
def paintEngine(self):
|
||||
# mpv owns the native window; Qt has no paint engine here.
|
||||
# Returning None suppresses the "paintEngine == 0" warnings.
|
||||
return None
|
||||
|
||||
def _init_player(self):
|
||||
if self._player is not None:
|
||||
return
|
||||
|
||||
Reference in new issue
Block a user