Results 1 to 4 of 4

Thread: how to display all images from directory one after another?

  1. #1
    Join Date
    Aug 2012
    Posts
    2
    Platforms
    Windows

    Default how to display all images from directory one after another?

    Hi! I try to make a gui application in qt creator. I want to display all images from choosen directory (a sort of slideshow), I read QDir, QStringList, QFileDialog class references but I have no idea how to do it. Please give me any examples of code.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to display all images from directory one after another?

    You really did not find the Image Viewer Example while you were reading?

  3. #3
    Join Date
    Aug 2012
    Posts
    2
    Platforms
    Windows

    Default Re: how to display all images from directory one after another?

    I found that but it didnt solve my problem. Generally, I have to do a screensaver, but first I just want to do a slideshow. In Image Viewer you can only show one chosen image and then choose another one. I thought of writing a function which will load the next image to label and connect it with timer like a slot.

  4. #4
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: how to display all images from directory one after another?

    A QTimer with its timeout() signal attached to a slot is perfectly reasonable. I offered the example because your initial question was completely broad and non-specific.

Similar Threads

  1. How to display DDS images?
    By jamsession in forum Qt Programming
    Replies: 5
    Last Post: 12th June 2013, 22:18
  2. Replies: 1
    Last Post: 3rd January 2012, 21:15
  3. Loading Images from Directory Faster
    By jalm in forum Newbie
    Replies: 1
    Last Post: 24th August 2011, 08:25
  4. display a directory using qtreewidget
    By kamlmish in forum Newbie
    Replies: 2
    Last Post: 19th December 2010, 12:37
  5. Display files of a Directory
    By mansu in forum Qt Programming
    Replies: 2
    Last Post: 8th March 2009, 15:08

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.