Hello.

I'm using MapWinGIS ActiveX control.
I want to add a shp file layer to map control, and map control needs IDispatch pointer.
Shpfile is a QAxObject class. (created by dumpcpp tool.)

Qt Code:
  1. #include "MainWindow.h"
  2.  
  3. using namespace MapWinGIS;
  4.  
  5. MainWindow::MainWindow(QWidget *parent) :
  6. QMainWindow(parent)
  7. {
  8. QString mapPath = "ne_10m_admin_0_boundary_lines_land.shp";
  9.  
  10. ui.setupUi(this);
  11.  
  12. ui.map->SetBackColor( Qt::black);
  13. Shapefile *sf = new Shapefile();
  14. sf->Open( mapPath, NULL );
  15.  
  16. ui.map->AddLayer( ????? );
  17. }
To copy to clipboard, switch view to plain text mode 

How can I get IDispatch pointer from QAxObject?


ps. Sorry for the poor English.