[Web] Drag and drop Event with QAxWidget issue

neel patel neel5481 at gmail.com
Thu Jun 29 08:50:16 CEST 2017


Hi,

I have subclass QAxWidget and re-implemented drag/drop Events as below but
wherever we drag some widget to this area then no events are coming.


class WebAxWidget : public QAxWidget
{
public:

    WebAxWidget(QWidget* parent = 0, Qt::WindowFlags f = 0)
        : QAxWidget(parent, f)
    {
    }

protected:
    void dragEnterEvent(QDragEnterEvent *event)
    {
        qDebug() << "Drag Event started ActiveX widget";
        event->accept();
    }

    void dragMoveEvent(QDragMoveEvent *event)
    {
        qDebug() << "Drag Move started ActiveX widget";
        event->acceptProposedAction();
    }

    void dropEvent(QDropEvent *event)
    {
        qDebug() << "Drop Event for ActiveX widget";
    }
}


No drag/drop events are coming. Can someone suggest how to receive those
events ?

Thanks in Advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/web/attachments/20170629/ed82bc29/attachment.html>


More information about the Web mailing list