if (QLibraryInfo::version().majorVersion() > 5)
{
m_pQWindow = new QWindow;
m_pQWidget = QWidget::createWindowContainer(m_pQWindow, pParent->GetQWidget());
} else
{ // with the qt5 VCL plugin, the above would cause issues with video playback (s. tdf#148864, tdf#125517), // which is not a problem with the QtMultimedia approach that the qt6 VCL plugin uses; // stay with the QtObjectWidget introduced in commit 4366e0605214260e55a937173b0c2e02225dc843
m_pQWidget = new QtObjectWidget(*this);
// invoke QWidget::winId() to ensure a native window for OpenGL rendering is available on X11, // don't do it on Wayland, as that breaks rendering otherwise, s.a. QtFrame::ResolveWindowHandle if (QGuiApplication::platformName() == "xcb")
m_pQWidget->winId();
m_pQWindow = m_pQWidget->windowHandle();
}
// set layout, used for video playback, see QtPlayer::createPlayerWindow
QVBoxLayout* layout = new QVBoxLayout;
layout->setContentsMargins(0, 0, 0, 0);
m_pQWidget->setLayout(layout);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.