Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    Unsolved Serializing Tons of Images

    General and Desktop
    3
    7
    1224
    Loading More Posts
    • 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.
    • A
      Anas A. Ismail last edited by Anas A. Ismail

      Hello Everyone, I wanted to ask what should I do to load huge amount of images to be displayed in albums as thumbnails and displayed on their original size. Any ideas ? P.S. all of this is done using qml

      T 1 Reply Last reply Reply Quote 0
      • mrjj
        mrjj Lifetime Qt Champion last edited by

        Hi
        there is nothing in http://doc.qt.io/qt-5/qtquick-demos-photoviewer-example.html
        that can be reused or its too slow?

        A 1 Reply Last reply Reply Quote 0
        • A
          Anas A. Ismail @mrjj last edited by

          @mrjj I tried to extend this example to make it loading images from local directories using FolderListModel, but it's too slow, do you have any ideas ?
          Moreover, I have a problem when I load new folder using File Dialog all loaded folders point to the same directory,
          Thanks

          mrjj 1 Reply Last reply Reply Quote 0
          • mrjj
            mrjj Lifetime Qt Champion @Anas A. Ismail last edited by

            @Anas-A.-Ismail
            Ok. sadly Im not into qml so best bet is someone answer in that group.

            A 1 Reply Last reply Reply Quote 0
            • A
              Anas A. Ismail @mrjj last edited by

              @mrjj Thanks, I do appreciate your help.

              1 Reply Last reply Reply Quote 0
              • T
                t3685 @Anas A. Ismail last edited by

                @Anas-A.-Ismail

                Have you tried setting the asynchronous property of the Image element to true?

                http://doc.qt.io/qt-5/qml-qtquick-image.html#asynchronous-prop

                A 1 Reply Last reply Reply Quote 0
                • A
                  Anas A. Ismail @t3685 last edited by

                  @t3685 Yes, I tried it and it didn't fix, I think I understood the problem,
                  actually the image are loaded in memory, I want to load their thumbnails only and load it into memory whenever I click on the thumbnail, do you have any ideas about this ?

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post