This code makes a setting of the type bool, which determines whether we want to do something. Then we set the default value to be true.

+

+

'''Always start the value of <entry name=""> in lower case since KConfig XT sets them to lower case within the generated headers either way. If you don't this could give you some nearly untraceable errors'''

+

+

Now we make a new File called tutorial4.kcfgc.

+

+

<code ini>

+

File=tutorial4.kcfg

+

ClassName=tutorial4

+

Singleton=true

+

Mutators=true

+

</code>

+

+

This should set up your configuration for now.

+

==The Code==

==The Code==

===mainwindow.h===

===mainwindow.h===

Revision as of 17:27, 27 June 2007

Contents

Abstract

In this tutorial, we're going to be showing you how to utilise KConfig XT in an application. It is recommended that you read Development/Tutorials/Using KConfig XT before continuing in order to familiarise yourself with the framework.

This code makes a setting of the type bool, which determines whether we want to do something. Then we set the default value to be true.

Always start the value of <entry name=""> in lower case since KConfig XT sets them to lower case within the generated headers either way. If you don't this could give you some nearly untraceable errors