PDA

View Full Version : how to move series of images from left to right in same window?



ganapathi
4th February 2016, 05:44
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

anda_skoa
4th February 2016, 09:34
Have you considered using QListWidget in icon view mode?

Cheers,
_

ganapathi
10th February 2016, 10:39
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

anda_skoa
10th February 2016, 10:58
Examples are shared via the Qt Documentation and as part of Qt.

Cheers,
_