How to show output video of other application in Qt?

醉酒当歌 提交于 2019-12-14 03:36:31

问题


I am creating a GUI application in Qt. This application is to display output of a application X which is not related to Qt hence i cant integrate it. X will output a video . This video do not have a path since it is a real-time display of X output.

I want to show this output in Qt (along with some background GUI support).

So as far as my knowledge one way to do this is to get the window id of video and display that same window in QWidget. How to do this?

EDIT :

I am using Ubuntu.

I am able to get the window id by following command.

xwininfo -name "name of window"


回答1:


You can try the embed widget:

http://harmattan-dev.nokia.com/docs/library/html/qt4/qx11embedwidget.html with a valid windowId



来源:https://stackoverflow.com/questions/19975816/how-to-show-output-video-of-other-application-in-qt

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!