Results 1 to 10 of 10

Thread: Simulating Video on QLabel or QGraphicsView

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: Simulating Video on QLabel or QGraphicsView

    Yes, I'm using OpenGL. It's portable and fast enough (probably even on software) and gives easy ways of manipulating the image displayed (like making it full screen). Using QWidget with a QLabel or whatever is sooo slow - I doubt I'd achieve 25fps and full screen. For smaller streams you can surely write data directly to QImage and render it on a widget or graphicsview (QGraphicsViewMovieItem?).

    A side question - how much work would it be to render an OpenGL item on the graphics view? I'm not an expert on QGL, but it should be possible using QGLFrameBufferObject, right?

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    21
    Thanked 418 Times in 411 Posts

    Default Re: Simulating Video on QLabel or QGraphicsView

    Using QWidget with a QLabel or whatever is sooo slow - I doubt I'd achieve 25fps and full screen
    As I said, I had no trouble doing 2 x 640x480 video streams in parallel at 30fps. with QWidget and bitBlt(), on a low end maschine.
    I don't claim it is better then using OGL, I think if I would had to do it today again, I wouild go for OGL too.
    I am no OGL expert either, so I can't answer your last question...

Similar Threads

  1. [SOLVED] DirectShow Video Player Inside Qt
    By ToddAtWSU in forum Qt Programming
    Replies: 16
    Last Post: 3rd November 2011, 08:47

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.