I built ParaView from the master branch, then used this ParaView to build the SimpleParaView example application. Drag & drop a file to the render window works in ParaView that I built, but not in the custom application. Was drag & drop deactivated on purpose in the SimpleParaViewI?
Thank you. Does it need modification in the build system? Adding these (along with the declarations in the header file) was not enough:
/home/zc/paraview/Examples/CustomApplications/SimpleParaView/client/myMainWindow.cxx: In member function âvirtual void myMainWindow::dragEnterEvent(QDragEnterEvent*)â:
/home/zc/paraview/Examples/CustomApplications/SimpleParaView/client/myMainWindow.cxx:88:61: error: invalid use of incomplete type âclass pqMainWindowEventManagerâ
88 | pqApplicationCore::instance()->getMainWindowEventManager()->dragEnterEvent(evt);
| ^~
In file included from /home/zc/paraview/Examples/CustomApplications/SimpleParaView/client/myMainWindow.cxx:7:
/home/zc/paraview_install/include/paraview-6.0/pqApplicationCore.h:17:7: note: forward declaration of âclass pqMainWindowEventManagerâ
17 | class pqMainWindowEventManager;
| ^~~~~~~~~~~~~~~~~~~~~~~~
/home/zc/paraview/Examples/CustomApplications/SimpleParaView/client/myMainWindow.cxx: In member function âvirtual void myMainWindow::dropEvent(QDropEvent*)â:
/home/zc/paraview/Examples/CustomApplications/SimpleParaView/client/myMainWindow.cxx:94:61: error: invalid use of incomplete type âclass pqMainWindowEventManagerâ
94 | pqApplicationCore::instance()->getMainWindowEventManager()->dropEvent(evt);
| ^~
/home/zc/paraview_install/include/paraview-6.0/pqApplicationCore.h:17:7: note: forward declaration of âclass pqMainWindowEventManagerâ
17 | class pqMainWindowEventManager;
| ^~~~~~~~~~~~~~~~~~~~~~~~
so it shouldnât be the problem. By the way, Clients/ParaView/ParaViewMainWindow.cxx only includes QDragEnterEvent, so QDropEvent must be included implicitly.