Prev Next Table of Contents
See Appendix C, "Answers," for the exercise answers.
10.6.1. Examine the KHTMLWidget reference documentation. Modify KSimpleBrowser to turn on Java applet and JavaScript support. Try it out.
10.6.2. Load an image file into a QImage instance and perform the following image transformation on an 8-bit color image (try one of the images in $KDEDIR/share/wallpapers): Replace each color in the color table (accessed via QImage::color()), with
1 2 qRgb (qGray (color), qGray (color), qGray (color)); 3 Display the image. 4