diff options
author | Morten Johan Sørvig <morten.sorvig@qt.io> | 2018-09-25 13:37:20 +0200 |
---|---|---|
committer | Liang Qi <liang.qi@qt.io> | 2018-11-12 07:15:16 +0000 |
commit | c9f375f4e3d90e1296d8159f98f003c7570f902f (patch) | |
tree | 4e25894d2e2116ab8de17eb9f60bec97f9864424 /src/gui/kernel | |
parent | b26ce2f0bffc5b1fedc5935c90df62e621abd9c7 (diff) |
Document QScreen::grabWindow high-DPI behavior
Change-Id: Ib32510ff30e907365e64921fda14e686a495c77c
Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@qt.io>
Diffstat (limited to 'src/gui/kernel')
-rw-r--r-- | src/gui/kernel/qscreen.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gui/kernel/qscreen.cpp b/src/gui/kernel/qscreen.cpp index 0ff439abea..f208eb02be 100644 --- a/src/gui/kernel/qscreen.cpp +++ b/src/gui/kernel/qscreen.cpp @@ -701,6 +701,11 @@ void QScreenPrivate::updatePrimaryOrientation() border of the window. If \a height is negative, the function copies everything to the bottom of the window. + The offset and size arguments are specified in device independent + pixels. The returned pixmap may be larger than the requested size + when grabbing from a high-DPI screen. Call QPixmap::devicePixelRatio() + to determine if this is the case. + The window system identifier (\c WId) can be retrieved using the QWidget::winId() function. The rationale for using a window identifier and not a QWidget, is to enable grabbing of windows |