Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. High-performance rendering of 1 million+ images

High-performance rendering of 1 million+ images

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 2 Posters 402 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.
  • J Offline
    J Offline
    jialuo
    wrote on last edited by jialuo
    #1

    I know we have gridview but the layout i need is not a grid, can i create my own high performance rendering layout.
    As shown below
    alt text
    alt text

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

      Hi and welcome to devnet,

      Are you thinking about something like the flow layout example ? If so, it can be tempting but the amount of images you are talking about would not make it practical because of the sheer amount of widgets required would be way too high.

      You should consider using model view, whether using widget or QtQuick is something you should try yourself but the important point will be to not try to load all of your data at once. There's no sense in trying to keep in memory at any given time that many images. You should have a moving window on top of your image set that loads a reasonable amount of images that allows to show something on screen plus some to allow sliding at a reasonable speed.

      Don't forget to also avoid trying to load full sized images. Thumbnails will be a way better use of your resources.

      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
      2
      • J Offline
        J Offline
        jialuo
        wrote on last edited by
        #3

        Thank you, I'm trying to use qt quick and Flow. But I ran into a problem with the optimized display:

        1. How to get the Flow element of the viewport?
        2. How to create delegat dynamically?
        3. Will the official add an optimized FlowView like GridView?
          The above is from Google Translate (sorry)
        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4
          1. Why would you need that ? You define where the Flow is instantiated ?
          2. Do you mean different delegates or create them only when needed ?
          3. I don't understand that one

          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
          0

          • Login

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