[Qt-interest] Drag and drop of specific data
Stephen Kelly
steveire at gmail.com
Thu Sep 9 21:10:32 CEST 2010
Yuriy Rusinov wrote:
> Hello, Stephen !
>
>
>>
>> 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.
>
> Source model is
>
It doesn't quite meet the compilable and complete tests. You left out the
data() method in the AttrsModel which returns an int for the Qt::UserRole.
Please also post a main.cpp to fill the model with data which should then be
dragged.
Did you mean before that dropMimeData does not get called at all?
All the best,
Steve.
More information about the Qt-interest-old
mailing list