Chapter 3. Using KTutorial in an application

Table of Contents

General setup
Adjusting applicationnameui.rc
Code changes
Coding tutorials
Creating the derived class
Setting the tutorial information
Using options
Waiting for something to happen
Finishing the tutorial

This little guide will show you how KTutorial can be used in your own application. First, the general changes to enable KTutorial will be presented, and then it will be shown how to develop a tutorial using the classes provided by the library.

This guide is based on KTutorial test app and the example tutorials in it. The test app is just a basic text editor: it has all the KDE standard menu and toolbars plus a text area and a "Clean" action. For further information, refer to the code of the test application itself.

KTutorial uses XMLGUI technology to merge its menu entry with those of the application using it. So your application must also use XMLGUI. If you don't know if you are using XMLGUI, you are probably doing it, as it is the rule more than the exception in KDE.