1 parent 220040a commit 0b31469Copy full SHA for 0b31469
1 file changed
samples/moving-objects/mainwindow.cpp
@@ -33,6 +33,10 @@ MainWindow::MainWindow()
33
mMap = new QGVMap(this);
34
setCentralWidget(mMap);
35
36
+ // fix leaving residuals when dragging the map rapidly
37
+ mMap->geoView()->setViewportUpdateMode(QGraphicsView::ViewportUpdateMode::FullViewportUpdate);
38
+ mMap->geoView()->setCacheMode(QGraphicsView::CacheModeFlag::CacheBackground);
39
+
40
Helpers::setupCachedNetworkAccessManager(this);
41
42
// Background layer
0 commit comments