Skip to content

Commit dc80ee6

Browse files
authored
Merge pull request #67 from mustafa-gokce/patch-1
Fix leaving residuals when dragging the map rapidly
2 parents 220040a + 0b31469 commit dc80ee6

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

samples/moving-objects/mainwindow.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ MainWindow::MainWindow()
3333
mMap = new QGVMap(this);
3434
setCentralWidget(mMap);
3535

36+
// fix leaving residuals when dragging the map rapidly
37+
mMap->geoView()->setViewportUpdateMode(QGraphicsView::ViewportUpdateMode::FullViewportUpdate);
38+
mMap->geoView()->setCacheMode(QGraphicsView::CacheModeFlag::CacheBackground);
39+
3640
Helpers::setupCachedNetworkAccessManager(this);
3741

3842
// Background layer

0 commit comments

Comments
 (0)