Skip to content

Commit

Permalink
Document QScreen::grabWindow high-DPI behavior
Browse files Browse the repository at this point in the history
Change-Id: Ib32510ff30e907365e64921fda14e686a495c77c
Reviewed-by: Tor Arne Vestbø <[email protected]>
  • Loading branch information
Morten Johan Sørvig authored and liangqi committed Nov 12, 2018
1 parent b26ce2f commit c9f375f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/gui/kernel/qscreen.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c9f375f

Please sign in to comment.