当我拖动并移动鼠标左键时,地图在鼠标释放后继续移动。您可以通过以下设置在Qt5大理石版本中停用此功能:
marbleWidget->inputHandler()->setInertialEarthRotationEnabled( false );旧版Qt4.x Marble API中不存在此函数。是否有等价的函数或方法来获得相同的结果?
发布于 2016-09-24 17:21:22
你到底在看哪个版本?我们在输入处理程序代码中进行了一些重构,几年前,当前的方法setInertialEarthRotationEnabled(bool)被称为setKineticScrollingEnabled(bool),请参阅https://github.com/KDE/marble/blob/KDE/4.10/src/lib/MarbleWidgetInputHandler.h。
https://stackoverflow.com/questions/39033043
复制相似问题