qt5base-lts/examples/widgets/draganddrop
Gabriel de Dietrich 8ebe8ae35e HiDPI Drag and Drop: Properly render the default image on Mac
This is only when the attached MIME data contains text, and we
fall back to rendering that text into a pixmap. It requires
getting the device pixel ratio from the source which, for now,
may be a QWidget or a QWindow. Other cases may exist, but that
would bring more dependencies than desired.

Similarly, it fixes the draggabletext example. Other examples
would require either to get updated pixmaps or change substantially
in order to support HiDPI (e.g., the fridgemagnets example).

Change-Id: I66198214233e3e06c87505744e2aaa9691fe1bb6
Reviewed-by: Filipe Azevedo <filipe.azevedo@kdab.com>
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@theqtcompany.com>
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
2016-08-09 18:22:03 +00:00
..
draggableicons Polish DnD Examples. 2015-10-09 15:59:21 +00:00
draggabletext HiDPI Drag and Drop: Properly render the default image on Mac 2016-08-09 18:22:03 +00:00
dropsite Polish DnD Examples. 2015-10-09 15:59:21 +00:00
fridgemagnets Polish DnD Examples. 2015-10-09 15:59:21 +00:00
puzzle Polish DnD Examples. 2015-10-09 15:59:21 +00:00
draganddrop.pro fix usage of wince scope 2015-06-05 10:29:10 +00:00
README Moving .qdoc files under examples/widgets/doc 2012-08-20 12:20:55 +02:00

Qt supports native drag and drop on all platforms via an extensible
MIME-based system that enables applications to send data to each other in the
most appropriate formats.

Drag and drop can also be implemented for internal use by applications.


Documentation for these examples can be found via the Examples
link in the main Qt documentation.