Solved How to improve performance of scrolling image viewer ?
-
i have used QScrollArea for implement gallery of image and video list view.
1] i have used dynamic label, frame and widget to show directory with radio button.
2] i have used dynamic push button with icon to show scaled image and video's first frame imagebut as number of image and video files increases. the scrolling become unresponsive and application hang.
i have to show 29 gb of images and videos in this screen.
As per my observation when i show greater than 6 gb of images in this gallery application hang.
what steps i need to take to enhance gallery performance on scrolling and image showing ?
what steps i need to take to not get application hang ?
-
@Qt-embedded-developer we are talking in circles here!
use scaled down lower res thumbnails
-
The thing to do is generate tumbnails for the images and videos. When loading an image to a label, check if the thumbnail on disc is up-to-date, and if not, generate it. Reading small tumbnails would be fast and memory-friendly.
-
@mvuori how to create thumbnail of image and videos ?
-
@Qt-embedded-developer
take a look at this topic:
https://forum.qt.io/topic/90759/qt-thumbnails-dyamically -
@J-Hilk when we need to create thumbnail either on capturing and saving file at that time or while displaying through gallery ?
-
@Qt-embedded-developer if you have no problem with the hard disk / ssd space consumption and only RAM, than only for the displaying on the view
-
@J-Hilk can you please elaborate your recent statement in more detail ?
-
@Qt-embedded-developer we are talking in circles here!
use scaled down lower res thumbnails
-
This post is deleted!