Commit 701b69a8 authored by David Gobbi's avatar David Gobbi
Browse files

17854: Python QVTKRenderWindowInteractor fallback

The QApplication devicePixelRatio() method is not static, it needs
an instance.

Resolves #17854
parent c1d347b5
......@@ -441,7 +441,7 @@ class QVTKRenderWindowInteractor(QVTKRWIBaseClass):
if rect.contains(pos):
return screen.devicePixelRatio()
# Should never happen, but try to find a good fallback.
return QApplication.devicePixelRatio()
return QApplication.instance().devicePixelRatio()
else:
# Qt4 seems not to provide any cross-platform means to get the
# pixel ratio.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment