Re: [QGIS-Developer] [Beginner] - Need examples Qgis c++ with Qt

2018-01-05 Thread Công Nam Phạm
, at 10:05, Công Nam Phạm <andrewpham.freelan...@gmail.com> wrote:I tried create own application with Qt create 3.5.0 and Qgis 2.14, but unsuccess. I found some example from https://github.com/qgis/QGIS-Code-Examples and try, so it's fail. These examples are very old - the general wor

[QGIS-Developer] [Beginner] - Need examples Qgis c++ with Qt

2018-01-05 Thread Công Nam Phạm
I tried create own application with Qt create 3.5.0 and Qgis 2.14, but unsuccess. I found some example from https://github.com/qgis/QGIS-Code-Examples and try, so it's fail. I need examples qgis with QtCreate. Thank for help! P/S: my project attached. I don't load layer to canvas TestQQGIS.rar

[QGIS-Developer] Get canvas scale wrong

2018-04-04 Thread Công Nam Phạm
if try get scale map, coordinate mouse (lon, lat) but wrong value. my code:def init.        self.canvas.useImageToRender(False)        self.canvas.setWheelAction(0,1.5)        self.canvas.MinScale =

[QGIS-Developer] Get canvas scale wrong (qgis 2.18)

2018-04-05 Thread Công Nam Phạm
if try get *scale map, coordinate mouse *(lon, lat) but wrong value. my code: *def init.* ** self.canvas.useImageToRender(False) self.canvas.setWheelAction(0,1.5) self.canvas.MinScale = 5000 self.canvas.MaxScale = 50