Skip to Content
C++ GUI Programming with Qt 4
book

C++ GUI Programming with Qt 4

by Jasmin Blanchette, Mark Summerfield
February 2008
Intermediate to advanced
752 pages
19h 5m
English
Pearson
Content preview from C++ GUI Programming with Qt 4

9. Drag and Drop

Image

Drag and drop is a modern and intuitive way of transferring information within an application or between different applications. It is often provided in addition to clipboard support for moving and copying data.

In this chapter, we will see how to add drag and drop support to an application and how to handle custom formats. Then we will show how to reuse the drag and drop code to add clipboard support. This code reuse is possible because both mechanisms are based on QMimeData, a class that can provide data in several formats.

Enabling Drag and Drop

Drag and ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

C++ GUI Programming with Qt 4

C++ GUI Programming with Qt 4

Jasmin Blanchette, Mark Summerfield
C++ GUI Programming with Qt 3

C++ GUI Programming with Qt 3

Jasmin Blanchette, Mark Summerfield
Programming with Qt, 2nd Edition

Programming with Qt, 2nd Edition

Matthias Kalle Dalheimer

Publisher Resources

ISBN: 9780137143979Purchase book