Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to improve performance of scrolling image viewer ?
Forum Updated to NodeBB v4.3 + New Features

How to improve performance of scrolling image viewer ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
9 Posts 4 Posters 966 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    Qt embedded developer
    wrote on 12 Feb 2021, 05:51 last edited by
    #1

    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 image

    but 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 ?

    gallery.png

    M 1 Reply Last reply 12 Feb 2021, 07:15
    0
    • Q Qt embedded developer
      12 Feb 2021, 10:00

      @J-Hilk can you please elaborate your recent statement in more detail ?

      J Offline
      J Offline
      J.Hilk
      Moderators
      wrote on 12 Feb 2021, 10:05 last edited by
      #8

      @Qt-embedded-developer we are talking in circles here!

      use scaled down lower res thumbnails


      Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


      Q: What's that?
      A: It's blue light.
      Q: What does it do?
      A: It turns blue.

      1 Reply Last reply
      2
      • Q Qt embedded developer
        12 Feb 2021, 05:51

        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 image

        but 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 ?

        gallery.png

        M Offline
        M Offline
        mvuori
        wrote on 12 Feb 2021, 07:15 last edited by
        #2

        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.

        Q 1 Reply Last reply 12 Feb 2021, 08:25
        3
        • M mvuori
          12 Feb 2021, 07:15

          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.

          Q Offline
          Q Offline
          Qt embedded developer
          wrote on 12 Feb 2021, 08:25 last edited by
          #3

          @mvuori how to create thumbnail of image and videos ?

          J 1 Reply Last reply 12 Feb 2021, 08:49
          0
          • Q Qt embedded developer
            12 Feb 2021, 08:25

            @mvuori how to create thumbnail of image and videos ?

            J Offline
            J Offline
            J.Hilk
            Moderators
            wrote on 12 Feb 2021, 08:49 last edited by
            #4

            @Qt-embedded-developer
            take a look at this topic:
            https://forum.qt.io/topic/90759/qt-thumbnails-dyamically


            Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


            Q: What's that?
            A: It's blue light.
            Q: What does it do?
            A: It turns blue.

            Q 1 Reply Last reply 12 Feb 2021, 09:40
            3
            • J J.Hilk
              12 Feb 2021, 08:49

              @Qt-embedded-developer
              take a look at this topic:
              https://forum.qt.io/topic/90759/qt-thumbnails-dyamically

              Q Offline
              Q Offline
              Qt embedded developer
              wrote on 12 Feb 2021, 09:40 last edited by
              #5

              @J-Hilk when we need to create thumbnail either on capturing and saving file at that time or while displaying through gallery ?

              J 1 Reply Last reply 12 Feb 2021, 09:43
              0
              • Q Qt embedded developer
                12 Feb 2021, 09:40

                @J-Hilk when we need to create thumbnail either on capturing and saving file at that time or while displaying through gallery ?

                J Offline
                J Offline
                J.Hilk
                Moderators
                wrote on 12 Feb 2021, 09:43 last edited by
                #6

                @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


                Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                Q: What's that?
                A: It's blue light.
                Q: What does it do?
                A: It turns blue.

                Q 1 Reply Last reply 12 Feb 2021, 10:00
                0
                • J J.Hilk
                  12 Feb 2021, 09:43

                  @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

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on 12 Feb 2021, 10:00 last edited by Qt embedded developer 2 Dec 2021, 10:05
                  #7

                  @J-Hilk can you please elaborate your recent statement in more detail ?

                  J 1 Reply Last reply 12 Feb 2021, 10:05
                  0
                  • Q Qt embedded developer
                    12 Feb 2021, 10:00

                    @J-Hilk can you please elaborate your recent statement in more detail ?

                    J Offline
                    J Offline
                    J.Hilk
                    Moderators
                    wrote on 12 Feb 2021, 10:05 last edited by
                    #8

                    @Qt-embedded-developer we are talking in circles here!

                    use scaled down lower res thumbnails


                    Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                    Q: What's that?
                    A: It's blue light.
                    Q: What does it do?
                    A: It turns blue.

                    1 Reply Last reply
                    2
                    • R Offline
                      R Offline
                      rareskyone
                      Banned
                      wrote on 13 Feb 2021, 15:11 last edited by rareskyone
                      #9
                      This post is deleted!
                      1 Reply Last reply
                      0

                      1/9

                      12 Feb 2021, 05:51

                      • Login

                      • Login or register to search.
                      1 out of 9
                      • First post
                        1/9
                        Last post
                      0
                      • Categories
                      • Recent
                      • Tags
                      • Popular
                      • Users
                      • Groups
                      • Search
                      • Get Qt Extensions
                      • Unsolved