Prev Next Table of Contents
Answers to the exercises can be found in Appendix C, "Answers".
7.7.1. Starting with KDropDemo as a base, write a program that accepts drops of images. Use QImageObject instead of QTextObject.
7.7.2. Now, using KDragDemo as a base, write a program that lets the user drag a pixmap to another application. You can use a QPixmap returned by BarIcon() as the data for the drag.
7.7.3. Look up KAudio in the KDE class documentation. Using KStandardDirs and KAudio, locate and play one of the sounds distributed with KDE. (The sounds are in $KDEDIR/share/sounds.)