[Qt-interest] Dropmimedata()
J-P Nurmi
jpnurmi at gmail.com
Sat Jul 4 16:08:20 CEST 2009
On Sat, Jul 4, 2009 at 4:35 PM, Yuvaraj R<yuvaraj at ongobiz.com> wrote:
> Hi All
>
> QtreeWidget Drag and Drop , dropminedata function is not called, though i
> defined..
>
> ...
>
> class MainWindow : public QMainWindow
> {
> ...
> bool dropMimeData(QTreeWidgetItem *parent, int index, const QMimeData
> *data, Qt::DropAction action);
> ...
> };
It's a virtual method of QTreeWidget, not QMainWindow. You are
supposed to inherit QTreeWidget and reimplement it in the QTreeWidget
subclass.
--
J-P Nurmi
More information about the Qt-interest-old
mailing list