Regentag
31st March 2013, 16:17
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.)
#include "MainWindow.h"
using namespace MapWinGIS;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)
{
QString mapPath = "ne_10m_admin_0_boundary_lines_land.shp";
ui.setupUi(this);
ui.map->SetBackColor( Qt::black);
Shapefile *sf = new Shapefile();
sf->Open( mapPath, NULL );
ui.map->AddLayer( ????? );
}
How can I get IDispatch pointer from QAxObject?
ps. Sorry for the poor English.
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.)
#include "MainWindow.h"
using namespace MapWinGIS;
MainWindow::MainWindow(QWidget *parent) :
QMainWindow(parent)
{
QString mapPath = "ne_10m_admin_0_boundary_lines_land.shp";
ui.setupUi(this);
ui.map->SetBackColor( Qt::black);
Shapefile *sf = new Shapefile();
sf->Open( mapPath, NULL );
ui.map->AddLayer( ????? );
}
How can I get IDispatch pointer from QAxObject?
ps. Sorry for the poor English.