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. what is way to implement lazy loading in existing code of thumbnail image previwer ?
Forum Updated to NodeBB v4.3 + New Features

what is way to implement lazy loading in existing code of thumbnail image previwer ?

Scheduled Pinned Locked Moved Solved Mobile and Embedded
10 Posts 2 Posters 1.1k Views 1 Watching
  • 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 Qt embedded developer
    #1

    i am loading at a time 30 GB of images on my thumbnail previewer so that my application become hang.

    so i think that if we load image as like mobile gallery. i can improve performance of image thumbnail previewer.

    But i don't know how to load thumbnail on scrolling slowly as it scroll ?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #10

      Don't try to load all these thumbnails.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • SGaistS Offline
        SGaistS Offline
        SGaist
        Lifetime Qt Champion
        wrote on last edited by
        #2

        Hi,

        Do you already have the thumbnails generated ?

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        Q 1 Reply Last reply
        0
        • SGaistS SGaist

          Hi,

          Do you already have the thumbnails generated ?

          Q Offline
          Q Offline
          Qt embedded developer
          wrote on last edited by
          #3

          @SGaist yes

          1 Reply Last reply
          0
          • SGaistS Offline
            SGaistS Offline
            SGaist
            Lifetime Qt Champion
            wrote on last edited by
            #4

            Check the Fetch More Example.

            Interested in AI ? www.idiap.ch
            Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

            Q 1 Reply Last reply
            0
            • SGaistS SGaist

              Check the Fetch More Example.

              Q Offline
              Q Offline
              Qt embedded developer
              wrote on last edited by Qt embedded developer
              #5

              i have 128 kb of ram and i have 30 gb images in sd card .

              Is this can create problem while load multiple images on ui ?

              if yes then how to deal with this problem ?

              1 Reply Last reply
              0
              • SGaistS Offline
                SGaistS Offline
                SGaist
                Lifetime Qt Champion
                wrote on last edited by
                #6

                @Qt-embedded-developer said in what is way to implement lazy loading in existing code of thumbnail image previwer ?:

                i have 128 kb of ram and i have 30 gb images in sd card .

                128kb ? I hope you are meaning Mb.

                In that case you should implement a "moving window" where you only load a fixed number of images at a time matching the number of visible items plus some more to allow for a reasonable transition.

                Interested in AI ? www.idiap.ch
                Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                Q 1 Reply Last reply
                3
                • SGaistS SGaist

                  @Qt-embedded-developer said in what is way to implement lazy loading in existing code of thumbnail image previwer ?:

                  i have 128 kb of ram and i have 30 gb images in sd card .

                  128kb ? I hope you are meaning Mb.

                  In that case you should implement a "moving window" where you only load a fixed number of images at a time matching the number of visible items plus some more to allow for a reasonable transition.

                  Q Offline
                  Q Offline
                  Qt embedded developer
                  wrote on last edited by
                  #7

                  @SGaist how to achieve such transition which qt property help me to implement it

                  1 Reply Last reply
                  0
                  • SGaistS Offline
                    SGaistS Offline
                    SGaist
                    Lifetime Qt Champion
                    wrote on last edited by
                    #8

                    My 128kb question is serious, what exact amount of memory do you have ?

                    In any case, you'll have to implement a custom view to minimize the amount of data loaded and used.

                    Interested in AI ? www.idiap.ch
                    Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                    Q 1 Reply Last reply
                    2
                    • SGaistS SGaist

                      My 128kb question is serious, what exact amount of memory do you have ?

                      In any case, you'll have to implement a custom view to minimize the amount of data loaded and used.

                      Q Offline
                      Q Offline
                      Qt embedded developer
                      wrote on last edited by
                      #9

                      @SGaist
                      sorry i found that i have total 1002 Mb ram, used ram 287 Mb , free ram which is increasing continuously while loading continuous image is 485 Mb , buffer/cache 228 Mb , availbale ram is 694 Mb .

                      the actual problem is i used thread which is using 100 % CPU core when loading image Continuously in loop

                      1 Reply Last reply
                      0
                      • SGaistS Offline
                        SGaistS Offline
                        SGaist
                        Lifetime Qt Champion
                        wrote on last edited by
                        #10

                        Don't try to load all these thumbnails.

                        Interested in AI ? www.idiap.ch
                        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

                        1 Reply Last reply
                        1

                        • Login

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