Results 1 to 4 of 4

Thread: how to move series of images from left to right in same window?

  1. #1
    Join Date
    Sep 2015
    Posts
    23
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default how to move series of images from left to right in same window?

    I have a certain window width. I have series of images of constant width and height coming In. I want to scroll them from left to right in one window. I have shown below pictorially.
    I use QLabels to display images.
    <--certain window width -->

    | img1 |

    then image 2 comes which should be displayed to the left of img1

    | img2 img1 |

    then image 3 comes and goes to left of img2

    | img3 img2 img1 |

    and so on..................................

    How do I achieve this is Qt?

    Thanks an Regards
    Last edited by ganapathi; 4th February 2016 at 05:56.

  2. #2
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to move series of images from left to right in same window?

    Have you considered using QListWidget in icon view mode?

    Cheers,
    _

  3. #3
    Join Date
    Sep 2015
    Posts
    23
    Thanks
    3
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: how to move series of images from left to right in same window?

    Quote Originally Posted by anda_skoa View Post
    Have you considered using QListWidget in icon view mode?

    Cheers,
    _
    I will try that one. It would be helpful if an example is shared of that QListWidget.

    Thanks

  4. #4
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,419
    Thanks
    37
    Thanked 1,546 Times in 1,496 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: how to move series of images from left to right in same window?

    Examples are shared via the Qt Documentation and as part of Qt.

    Cheers,
    _

Similar Threads

  1. Move text rigth,left and center
    By askatuak in forum Qt Quick
    Replies: 0
    Last Post: 20th September 2013, 14:09
  2. Widget for Animating a Series of Images
    By cpsmusic in forum Newbie
    Replies: 7
    Last Post: 30th June 2010, 06:44
  3. Display images and move them
    By AL in forum Qt Programming
    Replies: 5
    Last Post: 11th February 2010, 17:49
  4. Display images and move them
    By AL in forum General Programming
    Replies: 2
    Last Post: 11th February 2010, 11:15
  5. Replies: 0
    Last Post: 6th November 2009, 21:59

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.