如何在Weston的Gstreamer(waylandsink)渲染小部件上显示Qt小部件?

时间:2016-03-15 08:35:28

标签: c++ qt gstreamer wayland

我想在Gstreamer渲染小部件上显示Qt按钮小部件, 这是我在QWidget上的gstreamer waylandsink渲染的源代码,

QPlatformNativeInterface *native =
            QGuiApplication::platformNativeInterface();
struct wl_surface *surface = static_cast<struct wl_surface *>(
native->nativeResourceForWindow("surface", m_topWidget->windowHandle()));
gst_video_overlay_set_window_handle(
            GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (msg)),
            (guintptr) surface
        );
gst_video_overlay_set_render_rectangle(
            GST_VIDEO_OVERLAY (GST_MESSAGE_SRC (msg)),
            rect.x(), rect.y(),
            rect.width(), rect.height()
        );

那么,如何在渲染小部件上显示按钮?

0 个答案:

没有答案