Skip to content

Commit 0b31469

Browse files
Fix leaving residuals when dragging the map rapidly
1 parent 220040a commit 0b31469

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)