[Development] Can we have id's in dynamically generated elements for the next QML?

Luís Gabriel Lima luis.gabriel at openbossa.org
Thu Aug 2 18:00:57 CEST 2012


>
> But i still don't fully understand how to make a component draggable
> when it's being created dynamically through a Repeater.. Don't you
> just need an id for that to work?


You can use the delegate id to do the dragging.
Take a look in this [1] example, maybe it fits for your case.

[1] -
http://quickgit.kde.org/index.php?p=kde-workspace.git&a=blob&h=6d445510fc7b466b0d6a912b20179d296626414e&hb=551e443f7b3d598971d4c29eb297a7168a10d337&f=plasma%2Fdesktop%2Fapplets%2Fpager%2Fpackage%2Fcontents%2Fui%2Fmain.qml



Cheers,
-- 
Luís Gabriel
OpenBossa - INdT
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20120802/c2307224/attachment.html>


More information about the Development mailing list