Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-11508

QTreeView - setModel(...) - recurrent calls

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • 4.7.0
    • 4.6.2
    • Examples and Demos
    • None
    • MS Windows Vista Ultimate

    Description

      Hello,

      Sorry ! My English is very poor.

      I'am developping an application based on "simpletreemodel" example.

      From "task manager", I observe leak of memory.

      The main difference, with respect to the example cited, is that the calls to member function "setModel (...) of QTreeView, are recurrent (100 ms).

      So, from the example "simpletreemodel", I have modified the file "main.cpp" to highlight the problem mentioned.

      Please, see attachment.

      line 109
      view->setModel(model);

      Just setting this line to comment that the application does not "leak" more.
      (Obviously, there is no more view actualisation. Never mind ...)

      Could you explain me ?

      Which solution that would allow me to refresh the view without leak of memory ?

      Regards.

      Attachments

        1. main.cpp
          4 kB
          Henri BRUSORIO
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            boddie David Boddie (Inactive)
            slashbrus Henri BRUSORIO
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes