[Interest] Drag and drop Event with QAxWidget issue
neel patel
neel5481 at gmail.com
Mon Jul 3 09:07:57 CEST 2017
Hi Christoph,
Sorry, It's typo here. I already did "setAcceptDrops(true)" in constructor.
Any idea how can we resolve this ?
Thanks in Advance.
On Fri, Jun 30, 2017 at 12:20 PM, Christoph Keller <theoriginalgri at gmail.com
> wrote:
> You seem to have forgotten calling setAcceptDrops(true) in the
> constructor. See http://doc.qt.io/qt-5/dnd.html#dropping
>
> On 29.06.17 12:36, neel patel wrote:
>
> 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 generated.
>
>
> class WebAxWidget : public QAxWidget
> {
> public:
>
> WebAxWidget(QWidget* parent = 0, Qt::WindowFlags f = 0)
> : QAxWidget(parent, f)
> {
>
> setAcceptDrops(true);
> }
>
> 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 generated. Can someone suggest how to receive
> those events ?
>
> Thanks in Advance.
>
>
> _______________________________________________
> Interest mailing listInterest at qt-project.orghttp://lists.qt-project.org/mailman/listinfo/interest
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20170703/77f3dfa3/attachment.html>
More information about the Interest
mailing list