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. A larger memory leak while using dynamic listmodel?
Forum Updated to NodeBB v4.3 + New Features

A larger memory leak while using dynamic listmodel?

Scheduled Pinned Locked Moved QML and Qt Quick
2 Posts 1 Posters 1.4k 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.
  • C Offline
    C Offline
    chenjie4255
    wrote on last edited by
    #1

    hello everybody.I am learning QML in Qt 5.0.2,now i try to make a simple picture viewer,
    so i write a c++ class to manager the paths of picture in which directory i selected, and the listModel may be simply is:
    @ VisuleListModel {
    id: model
    Image {
    source :"xxxxxx"
    width:.....
    }
    ......
    Image {
    .....
    }
    }
    @
    and i use the ListView in this code:
    @ ListView {
    model:xxx
    ....
    }
    @
    the application run well,but i found that the using memory is up while i flick the view,at first the using memory is about 60M, when i flick the view as many as times, the memory could up to 600M even more.
    i think it's not normal, does anybody meet this situation ?

    sorry i am poor in english and in other's computer i can't upload the code or the snapshot

    [[Added code markup, Tobias]]

    1 Reply Last reply
    0
    • C Offline
      C Offline
      chenjie4255
      wrote on last edited by
      #2

      sorry the code is nothing with dynamic listmodel....>"<

      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