[转]QT 显示视频
2010-12-28 19:41
447 查看
原地址不清楚,从网上随便找到的,做一下记录 QPainter has a method called drawImage. You can do something like the following in a subclass of QWidget: void VideoWidget::paintEvent() { //Get the current frame and size data... //Passing QImage QImage frame(frameDataUCharPtr, frameWidth, frameHeight. QImage::Format_RBG32 ); QPainter painter(this); painter.drawImage(rect(), frame); } Under Qtopia you can use QDirectPainter to write directly to framebuffer memory and get some faster access for drawing frames. You will have to do the color conversions yourself to get the frame into your framebuffer's color model. --Justin
相关文章推荐
- ffmpeg解码RTSP/TCP视频流H.264(QT界面显示视频画面)
- QT中的视频显示优化
- <Linux+Qt>Qt4编程控制mplayer嵌入自定义界面监控或视频显示
- 视频和QT的GUI显示到LCD的不同显示层—透过GUI能看到视频
- OpenCV在Qt中显示视频的两种方法
- qt使用ffmpeg显示rtsp视频流
- Qt5--学习笔记-+openCV2-客户端、服务端回环视频显示
- zedboard--zedboard的qt测试和usb视频采集和显示(十六)
- V4L搞定 +QT显示摄像头视频
- 用qt显示视频.qt video
- Zedboard摄像头获取视频设计问题篇(四)-OpenCV+QT配置显示图片
- 用qt显示视频.qt video
- 使用QT进行视频帧显示时如何防止闪烁现象出现呢?
- win音视频--qt视频显示
- 【转】Qt简单视频显示--
- Qt:解码海康视频格式并显示在QLabel上
- QT中调用mplayer显示视频并加透明文字
- ffmpeg解码RTSP/TCP视频流H.264(QT界面显示视频画面)
- 使用QT和Opencv获取文件夹中任意的视频文件并显示出来
- qt显示视频大小和位置