Tag Info

New answers tagged

1

Must reimplement two functions: paint() and boundingRect(). Here is code: void TFMapCanvasSvgItem::paint(QPainter* painter) { if (!painter) { return; } QImage svgImage(50, 40, QImage::Format_ARGB32); QPainter imagePainter(&svgImage); mSvgRenderer.render(&imagePainter); painter->drawImage(QRect(0, 0, 100, 80), svgImage, ...


0

Here are pretty recent examples for QGis C++ plugin development. QGis C++ plugin examples


1

There were two problems. One noticed by @kyle, that the VRTDataset depends on the original, the other that the datasets needed to be closed in a specific order. Since all the datasets in this example are created in a program I was not able to use GDALOpenShared() as the documentation suggests, so instead the proper datasets need to be closed and removed at ...


0

I experienced a similar problem. I use Windows 7. I compiled the binaries for MinGW using the steps found on this page http://trac.osgeo.org/gdal/wiki/BuildingWithMinGW (I could not find prebuilt binaries for MinGW, the links in the documentation were a dead end). The produced DLL and LIB files were linked correctly but my program still crashed. I also had ...


0

Are you sure you set the environment variables? Are the GDAL DLLs of the right bitness on your path? SysWOW64 indicates to me that you're trying to run 32-bit on a 64-bit OS. -reilly.



Top 50 recent answers are included