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
) :{
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( ????? );
}
#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( ????? );
}
To copy to clipboard, switch view to plain text mode
How can I get IDispatch pointer from QAxObject?
ps. Sorry for the poor English.
Bookmarks