[Qt-qml] Removal of the Script element
aaron.kennedy at nokia.com
aaron.kennedy at nokia.com
Tue Mar 30 02:25:03 CEST 2010
Hi Mathias,
Please raise a bug for this.
Cheers,
Aaron
On 30/03/10 6:31 AM, "Malmqvist Mathias (Nokia-SU/London)" <mathias.malmqvist at nokia.com> wrote:
> If you want a *true* singleton (a single copy for the entire application)
> you're in luck. If the JS file starts with ".pragma library" QML will
> import it as a singleton.
Brilliant! Just want I need. Thanks! :)
A related question though:
I'm using the Component.onComplete() signal to add QML elements to
my JS singleton array when they are created, but I can't see any way of
removing them when they are about to be deallocated. I'm using the
ListView's delayRemove attached property to prevent the delegate items
from being deleted, but it would be better if there was something like a
Component.onDestruction() signal.
Is there something I can use already, or should I raise it as a "defect"?
Cheers
Mathias
------------------------------------------------------------
Mathias Malmqvist
CWRT Prototype Lead
S SE UX Prototyping GB
10 Great Pulteney Street, London, W1F 9NB, UK
Got no reply? Try giving me a call:
Mobile: +44 (0)77 6522 2738
http://www.nokia.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20100330/97821bcb/attachment.html
More information about the Qt-qml
mailing list