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 961 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 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
    0
    • Q Qt embedded developer

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

      J.HilkJ Offline
      J.HilkJ Offline
      J.Hilk
      Moderators
      wrote on 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

        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 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
        3
        • M mvuori

          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 last edited by
          #3

          @mvuori how to create thumbnail of image and videos ?

          J.HilkJ 1 Reply Last reply
          0
          • Q Qt embedded developer

            @mvuori how to create thumbnail of image and videos ?

            J.HilkJ Offline
            J.HilkJ Offline
            J.Hilk
            Moderators
            wrote on 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
            3
            • J.HilkJ J.Hilk

              @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 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.HilkJ 1 Reply Last reply
              0
              • Q Qt embedded developer

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

                J.HilkJ Offline
                J.HilkJ Offline
                J.Hilk
                Moderators
                wrote on 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
                0
                • J.HilkJ J.Hilk

                  @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 last edited by Qt embedded developer
                  #7

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

                  J.HilkJ 1 Reply Last reply
                  0
                  • Q Qt embedded developer

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

                    J.HilkJ Offline
                    J.HilkJ Offline
                    J.Hilk
                    Moderators
                    wrote on 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 last edited by rareskyone
                      #9
                      This post is deleted!
                      1 Reply Last reply
                      0

                      • Login

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