This behaviour can be solved by setting Qt::AA_DontCreateNativeWidgetSiblings.
right after creating the QApplication:
Code: Select all
app = QApplication(sys.argv)
app.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)
Code: Select all
app = QApplication(sys.argv)
app.setAttribute(Qt.AA_DontCreateNativeWidgetSiblings)
Code: Select all
self.mediaplayer.set_nsobject(self.videoframe.winId())
Code: Select all
self.mediaplayer.set_nsobject(int(self.videoframe.winId()))