Answer the question
In order to leave comments, you need to log in
How to make a widget to display images in PyQt?
There is a very simple task - to count all the photos from a given directory and display their previews in a grid for users. It seems that everything is very simple, but it is not possible to make the width of the widget change dynamically.
Those. if the user expanded the program window, I would like the number of columns to increase, say, from 3 to 5. It is desirable without additional intervention in the code. All thumbnails will be the same size, but I would like to be able to change this size for the visually impaired. In general, the usual gallery. How to do it easier?
Python 2.7, Qt4
Answer the question
In order to leave comments, you need to log in
I see here also an android with a touch screen, definitely QML. There's Grid out of the box that does what you need.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question