Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Displaying a sequense of images
QtWS25 Last Chance

Displaying a sequense of images

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 3.3k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mazza
    wrote on last edited by
    #1

    Hi!

    So i just started playing around with Qt and i've managed to do some interesting things so far =)
    But i'm stuck on a problem(due to my lack of knowlage). What i'm looking for is some tips/tutorial on how to display a sequense of images(with some time delay between each image) to make it look like a short movie. I've experimented abit with graphicsview and i've been able to display an image. I know the graphicsview is supposed to support .gif and .mng, but i've had some difficulties getting them working due to librarys(i think).
    I plan on making some simple test, like case A -> loop image sequense A and case B -> loop image sequense B. What would be the easiest way of doing this? There are so many different functions/librarys in Qt that i feel lost. Any tips would be get me on the track would be greatly appritiated!

    Regards,
    Tomas

    1 Reply Last reply
    0
    • R Offline
      R Offline
      Rahul Das
      wrote on last edited by
      #2

      Welcome to the forum..

      IMHO, using a QLabel is a lot more easier, If it is just a slide show. With the use of QImageReader ,you can adjust the parameters of the image(s). You can use QTimer for timely actions..

      For to play video , you may go through phonon, the multimedia architecture. http://developer.qt.nokia.com/doc/qt-4.8/phonon-overview.html#video


      Declaration of (Platform) independence.

      1 Reply Last reply
      0
      • A Offline
        A Offline
        andre
        wrote on last edited by
        #3

        Well, I think that QGraphicsView is not a bad choice, depending on your needs of course. If you want things like effects to fade between images or animations to transition from one image to the next, it is a great place to start, and you can use the animation framework for the timing of the the whole thing.

        Also, QML comes to mind for applications like this. It is really easy to do this kind of thing, and there are some great examples about.

        1 Reply Last reply
        0
        • M Offline
          M Offline
          mazza
          wrote on last edited by
          #4

          I think i'll take a look at Qlabel + QImageReader, if its the easier one it might help me to understand the graphicsview better after.

          About the graphicsview, effects like fade would indeed be nice to have. But the animation framework, how am i supposed to use it in the way i described in my first post? This might be alot to ask, but how would i go about to create a list of images, rendered at an x time interval and then loaded onto the acctual scene? I see some interesting posibiltys, QTimeline, QSequentialAnimationGroup, looks like they could do it, but as i just said dont know how. I'm fairly new at programming, especially c++, done some C in on MCU:s in before.

          I'm running qt 4.63 on an embedded device, i dont think i have the support to run any QML with it.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved