devicePixelRatio() was introduced in Qt-5.1.0