starcontrol
28th April 2008, 14:36
Hi,
i try to implement DragAndDrop Suuport in my simple calender application. It is model/view based, so I read the trolltechs docu:
http://doc.trolltech.com/4.3/model-view-dnd.html
It is not clear for me how I have to proceed.
My application is a table view which works like the outlook calender. You have events in the calender, these events have a start date, end date, event number and two booleans.
So i like to drag and drop these events to a different date in my table.
Do you know, what I have to implement to reach this ?
What do Ihave to do with the method:
QStringList DragDropListModel::mimeTypes() const
and what do I have to do with the method:
QMimeData *DragDropListModel::mimeData(const QModelIndexList &indexes) const
?
Thanks,
Alex
i try to implement DragAndDrop Suuport in my simple calender application. It is model/view based, so I read the trolltechs docu:
http://doc.trolltech.com/4.3/model-view-dnd.html
It is not clear for me how I have to proceed.
My application is a table view which works like the outlook calender. You have events in the calender, these events have a start date, end date, event number and two booleans.
So i like to drag and drop these events to a different date in my table.
Do you know, what I have to implement to reach this ?
What do Ihave to do with the method:
QStringList DragDropListModel::mimeTypes() const
and what do I have to do with the method:
QMimeData *DragDropListModel::mimeData(const QModelIndexList &indexes) const
?
Thanks,
Alex