Results 1 to 9 of 9

Thread: RealTime Images

Hybrid View

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

    Default Re: RealTime Images

    I wouldn't use Graphics View if all you want is to render images. It should be faster if you do it by subclassing QWidget or setting a pixmap on a QLabel object. Graphics View does some additional transformations that you don't need so it only creates overhead.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  2. #2
    Join Date
    Sep 2009
    Posts
    36
    Thanks
    4
    Thanked 5 Times in 5 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: RealTime Images

    to 3) connect the update() slot to a custom signal, which you emit right after you set your image in the QGraphics*

    to 2) not bad I'd say, wait for Waysotas answer

    to 3) I wanted to point you to QTimer, to actually meassure how much time takes to actually show the pic (maybe 1000x iterations if value is very small)

    to 4) It depends on what you need, any QWidget based (or even a QWidget itself) is enough, thisdepends all on your needs

    @Waysota: I am not sure which one is faster. OpenGL is hardware accelerated while QLabel will us a software renderer. But you probably know more about that subject so I'll just leave it with that.

    Yours sincerely

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,368
    Thanks
    3
    Thanked 5,017 Times in 4,793 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: RealTime Images

    Quote Originally Posted by soxs060389 View Post
    @Waysota: I am not sure which one is faster. OpenGL is hardware accelerated while QLabel will us a software renderer. But you probably know more about that subject so I'll just leave it with that.
    I was merely pointing out not to use GV. If you use QGLWidget or QWidget as your base class, that's another issue.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


Similar Threads

  1. Loading corrupt jpeg images with QImage
    By mikeee7 in forum Qt Programming
    Replies: 15
    Last Post: 3rd December 2010, 01:59
  2. Moving images and change their DIP
    By yazwas in forum Qt Programming
    Replies: 1
    Last Post: 26th October 2009, 17:46
  3. QScrollArea not displaying large number of images
    By lpkincaid in forum Qt Programming
    Replies: 1
    Last Post: 31st May 2009, 09:58
  4. Replies: 8
    Last Post: 8th May 2009, 09:14
  5. import large number of images
    By sriluyarlagadda in forum Qt Programming
    Replies: 5
    Last Post: 15th May 2008, 10:26

Tags for this Thread

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.