summaryrefslogtreecommitdiffstats
path: root/src/gui/doc/src/dnd.qdoc
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/doc/src/dnd.qdoc')
-rw-r--r--src/gui/doc/src/dnd.qdoc28
1 files changed, 14 insertions, 14 deletions
diff --git a/src/gui/doc/src/dnd.qdoc b/src/gui/doc/src/dnd.qdoc
index 1e7a1a988f..7a756b304e 100644
--- a/src/gui/doc/src/dnd.qdoc
+++ b/src/gui/doc/src/dnd.qdoc
@@ -2,6 +2,7 @@
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
/*!
+ \keyword Drag and Drop in Qt
\page dnd.html
\title Drag and Drop
\brief An overview of the drag and drop system provided by Qt.
@@ -334,7 +335,9 @@
For example, we can copy the contents of a QLineEdit to the clipboard
with the following code:
- \snippet ../widgets/widgets/charactermap/mainwindow.cpp 11
+ \code
+ QGuiApplication::clipboard()->setText(lineEdit->text(), QClipboard::Clipboard);
+ \endcode
Data with different MIME types can also be put on the clipboard.
Construct a QMimeData object and set data with setData() function in
@@ -363,23 +366,20 @@
\li \l{draganddrop/draggableicons}{Draggable Icons}
\li \l{draganddrop/draggabletext}{Draggable Text}
\li \l{draganddrop/dropsite}{Drop Site}
- \li \l{draganddrop/fridgemagnets}{Fridge Magnets}
- \li \l{draganddrop/puzzle}{Drag and Drop Puzzle}
\endlist
\section1 Interoperating with Other Applications
- On X11, the public \l{https://johnlindal.wixsite.com/xdnd}{XDND
- protocol} is used, while on Windows Qt uses the OLE standard, and
- Qt for \macos uses the Cocoa Drag Manager. On X11, XDND uses MIME,
- so no translation is necessary. The Qt API is the same regardless of
- the platform. On Windows, MIME-aware applications can communicate by
- using clipboard format names that are MIME types. Already some
- Windows applications use MIME naming conventions for their
- clipboard formats.
+ On X11, the public
+ \l{https://freedesktop.org/wiki/Specifications/XDND}{XDND protocol} is
+ used, while on Windows Qt uses the OLE standard, and Qt for \macos uses the
+ Cocoa Drag Manager. On X11, XDND uses MIME, so no translation is necessary.
+ The Qt API is the same regardless of the platform. On Windows, MIME-aware
+ applications can communicate by using clipboard format names that are MIME
+ types. Some Windows applications already use MIME naming conventions for
+ their clipboard formats.
Custom classes for translating proprietary clipboard formats can be
- registered by reimplementing QWinMime on Windows or
- QMacPasteboardMime on \macos.
-
+ registered by reimplementing QWindowsMimeConverter on Windows or
+ QUtiMimeConverter on \macos.
*/