[Qt-qml] Announcing unofficial drag and drop support to QML

Gregory Schlomoff gregory.schlomoff at gmail.com
Mon Jul 12 06:27:31 CEST 2010


Hello everyone,

We are very pleased to announce that we quickly baked some drag and
drop support to qml last week, and we are making the code available as
open-source for everyone.

The code quality isn't close to what the trolls do, documentation is
still a stub, and there are some things missings here and there (look
for //TODO's inside the code)

Still, it works, and should provide a good starting point for people
looking for drag and drop in qml.

Some features :

- built as a wrapper around Qt's drag and drop classes (QDrag,
QMimeData, and QGraphicsSceneDragDropEvent)

- Provides support for inter-application drag and drop.

- Easy to use. See the qml file for an example usage.

Expect the quality of the code to improve during the next weeks, as we
make more usage of it internally, and start adding the missing things.
In the meantime, any feedback that you may want to provide will be
highly appreciated.

And of course, if we can see an official implementation from Qt, it
will be way better :)

The code is available as a Mercurial repository here:
http://bitbucket.org/gregschlom/qml-drag-drop

(sorry, git users, we'll make a git clone if there is some demand, in
the meantime, you can download a zip with the sources)

Disclaimer: we are in no way associated with Nokia or Qt. We are just
an independant start-up using Qt and QML to build a great desktop app.

Cheers,

Greg



More information about the Qt-qml mailing list