Enhance QWindow::devicePixelRatio() docs

Document that fact that for non-create()'ed windows this is the
same as QGuiApplication::devicePixelRatio() which is the highest
dpr in the system. This has consequences when running with multiple
displays so application developer's have to be aware of this.

Change-Id: Ic05a18732ff021659da04428cb49421ac3453870
Reviewed-by: Morten Johan Sørvig <morten.sorvig@theqtcompany.com>
This commit is contained in:
Laszlo Agocs 2015-04-16 15:47:15 +02:00
parent 4d2b7e5f2e
commit a989e5c54f

View File

@ -1075,6 +1075,10 @@ Qt::ScreenOrientation QWindow::contentOrientation() const
Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays. Common values are 1.0 on normal displays and 2.0 on Apple "retina" displays.
\note For windows not backed by a platform window, meaning that create() was not
called, the function will fall back to QGuiApplication::devicePixelRatio() which in
turn returns the highest screen device pixel ratio found on the system.
\sa QScreen::devicePixelRatio(), QGuiApplication::devicePixelRatio() \sa QScreen::devicePixelRatio(), QGuiApplication::devicePixelRatio()
*/ */
qreal QWindow::devicePixelRatio() const qreal QWindow::devicePixelRatio() const