I am trying to develop an image gallery application using Qt Framework. The application loads all the images from the selected folder and those images are displayed using QListView control.
But now i want to reduce the memory consumption by loading only the images that are visible to user. Since there is no direct function to get all the visible items in the view, i am not able to achieve this.
You can get the visible items of a list view using the
indexAt function. For more details and an example you can check the following article:
Answered By – pnezis
Answer Checked By – Willingham (BugsFixing Volunteer)