[Qt-interest] Drag and drop of specific data
Stephen Kelly
steveire at gmail.com
Tue Sep 7 18:13:08 CEST 2010
Yuriy Rusinov wrote:
> Dear colleagues !
>
> I have to drag and drop data from one model to another. These models
> are inherited from QStandardItemModel class, but first model has to be
> dragged only, and second has to be dropped only. Is it possible and
> which way I have to realize this ? Qt examples are works but if I try
> to implement virtual functions mimeData and mimeTypes then accept
> model is not accept these data.
> Thanks in advance.
>
You also need to implement dropMimeData in the target model. Apart from that
it should work (though I've never tried with QStandardItemModel), so you
would need to post a small simple compilable example.
Steve.
More information about the Qt-interest-old
mailing list