[Qt-creator] Drag&Drop in Qt Creator

Tobias Hunger tobias.hunger at gmail.com
Mon Mar 3 18:20:11 CET 2014

Hi Jochen,

> Jochen Becher wrote:
> > currently I am developing a new Qt Creator plug-in for some kind of
> > structural modeling (very tiny sub-set of UML). I would like to
> > integrate the plug-in smoothly: it should be possible to drag project
> > explorer nodes or class-view nodes to a diagram or the model tree to
> > create new model elements (packages, components and classes).
> >
> > Currently all the trees and lists do not support drag&drop. As a test I
> > enhanced ProjectExplorer::FlatModel and ProjectExplorer::ProjectTreeView
> > to support drag&drop and it works fine.

Why did you start with the project explorer and not the class viewer? The
project explorer is about build system structure, how does that fit into
UML or a subset thereof?

> > Now I wonder if there is any interest to implement a generic concept of
> > drag&drop in Qt Creator? That means one should define an API where
> > plug-ins may ask for drag&drop support (no need to make items draggable
> > if there are no consumers enabled) and define a list of mime-types and
> > QMimeData contents that are dragged from the different trees and lists.
> Generally speaking, I think this would be a very welcome addition.

I agree, even though I personally did not yet miss drag and drop😊

Best regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/qt-creator/attachments/20140303/0a4d32d4/attachment.html>

More information about the Qt-creator mailing list