[Qt-creator] QML Debug Window

Jana Aurindam Aurindam.Jana at digia.com
Wed Feb 13 10:20:39 CET 2013


The QML object tree in the debugger is "refreshed" when a new QML object is created. This means that sometimes the debugger may list "ghost" objects, i.e. objects that have been garbage collected but still exist in the debugger model.
We plan to track the lifetime of the QML objects in order to provide a better representation of the current state of the QML engine. However, I am planning to put this feature in Qt 5.1 release.

In your case, the QML debugger updates the model whenever a new List item is created. When you stop scrolling, there are no new objects being created and hence the model is not updated.
It would be helpful if you can paste the debugger log (Windows->Views>Debugger Log) to get a better overview.


On Feb 13, 2013, at 9:08 AM, Stephen King <Stephen.King at domino-uk.com<mailto:Stephen.King at domino-uk.com>> wrote:


I've been debgging my application which has a QML ListView with ~100 items in it. While scrolling through the view I see the number of delegates shown in the QML debug window increasing (as I'd expect as they may not have been garbage collected yet) but when I stop scrolling this number stays the same until I scroll the view up by a single item. Is this a feature of the debug window (it only updates when a QML event occurs) or the underlying QML (garbage collection isn't firing)?


Visit our website at http://www.domino-printing.com
This Email and any files transmitted with it are intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any reading, redistribution, disclosure or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited.  If you are not the intended recipient please contact the sender immediately and delete the material from your computer.

E-mail may be susceptible to data corruption, interception, viruses and unauthorised amendment and Domino UK Limited does not accept liability for any such corruption, interception, viruses or amendment or their consequences.
Domino UK Limited. Registered in England. Registered Number:1750201. Registered Office Address: Trafalgar Way, Bar Hill, Cambridge, CB23 8TU.

Qt-creator mailing list
Qt-creator at qt-project.org<mailto:Qt-creator at qt-project.org>

Aurindam Jana, Software Engineer - Digia, Qt
Don't Panic!
Digia Germany GmbH, Rudower Chaussee 13, D-12489 Berlin
Geschäftsführer: Mika Pälsi, Juha Varelius, Anja Wasenius
Registergericht: Amtsgericht Charlottenburg, HRB 144331 B

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20130213/165aa565/attachment.html>

More information about the Qt-creator mailing list