|
- QQuickWidget *container = new QQuickWidget(QUrl("qrc:/main.qml"),glVideo);
- container->rootContext()->setContextProperty("udpSenderCDP",&udpSender);
- container->setGeometry(0, 0, 1920, 1080);
- container->setAttribute(Qt::WA_AlwaysStackOnTop, true);
- container->setClearColor(QColor(Qt::transparent));
-
复制代码
最终我改成这样了,成功透明化。
谢谢Joey_Chan |
|