The K Desktop Environment

Next Previous Table of Contents

1. Introduction

This application is intended to serve as an example program for developers. Created with KDevelop, it shows the various facettes of KDE development.

The idea is taken from the popular "Scribble" application tutorial, as described in Kalle Dalheimer's Programming with Qt and the example given in the Qt 2.0 online-documentation.

1.1 Changes

Version 0.1 contains an adapted widget KScribbleView similar to the Canvas widget of the Qt example. The differences are, besides the classname, that the QPointArray values are set with QPointArray::setPoint() to make the widget's event handlers work with the Qt 1.4x implementation.

Further the framework is extended to make use of the widget's clear function, the color setting and brush width setting. The width and color setting are kept in a separate menu "Pen" as well as included into the toolbar.

The according slots call a KColorDialog for the color-selection and a dialog that has been created with the KDevelop dialogeditor for setting the width.

Next Previous Table of Contents