problem with my zoomIn or ZoomOu

المشرف العام

Administrator
طاقم الإدارة
i am using qgis 2.8.2 and qt4.8.5i have a problem when i call zoomIn or ZoomOut, the raster on canvas is reduce or zoomed but :- the raster size change- it disaprar- it appear again but 3 to 5 seconds later

i don't understand why there is this delay, it seems that there is 2 rendering of the mapcanvas

here is my code :

void CMyQgsS57::SlotzoomIn(){ ((CMyQgsMapCanvas*)mpMapCanvas)->zoomIn();}void CMyQgsS57::zoomIn() //+{ if (((CMyQgsMapCanvas*)mpMapCanvas)->isDrawing() == true) { QTimer::singleShot(5, this, SLOT(SlotzoomIn())); }}void CMyQgsS57::SlotzoomOut(){ ((CMyQgsMapCanvas*)mpMapCanvas)->zoomOut();}void CMyQgsS57::zoomOut() //-{ if (((CMyQgsMapCanvas*)mpMapCanvas)->isDrawing() == true){ QTimer::singleShot(5, this, SLOT(SlotzoomOut())); } }if you have any idea please let me know



أكثر...
 
أعلى