Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Flow + Repeater + Image = performance issue
Forum Updated to NodeBB v4.3 + New Features

Flow + Repeater + Image = performance issue

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.3k 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.
  • M Offline
    M Offline
    maxim.prishchepa
    wrote on last edited by
    #1

    Hello All!
    I have a issue with performence, when try to load a lot of images using Repeater to the Flow,

    How it's looks like:
    @Flow {
    id: grid
    Repeater {
    id: iconHive
    Image {
    source: "qrc:///img/"+modelData+".png"
    MouseArea {
    anchors.fill: parent
    onClicked: imgSelected(modelData)
    }
    }
    }
    }@

    Currently i have around 800 items in the model, and all of them try to load in a start of app.

    How i can load only displaying elements for example, or start load all of items in additional thread?
    Tnx a lot 4 answers!

    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

    1 Reply Last reply
    0
    • p3c0P Offline
      p3c0P Offline
      p3c0
      Moderators
      wrote on last edited by
      #2

      Hi,

      Did you try using "asynchronous":http://qt-project.org/doc/qt-5/qml-qtquick-image.html#asynchronous-prop property ?

      157

      1 Reply Last reply
      0
      • M Offline
        M Offline
        maxim.prishchepa
        wrote on last edited by
        #3

        2 p3c0
        Yep, i try it, but issue is still exists.

        Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

        1 Reply Last reply
        0
        • p3c0P Offline
          p3c0P Offline
          p3c0
          Moderators
          wrote on last edited by
          #4

          How about using a Timer with a low interval ? Then Create the Image component dynamically in the onTriggered handler and add to the Flow.

          157

          1 Reply Last reply
          0
          • M Offline
            M Offline
            maxim.prishchepa
            wrote on last edited by
            #5

            em....
            It's looks like a hack :)
            i'd like to go to some easy way....
            but tnx a lot 4 mind

            Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

            1 Reply Last reply
            0
            • M Offline
              M Offline
              maxim.prishchepa
              wrote on last edited by
              #6

              any else ideas?

              Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz).

              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