Constructor & Destructor Documentation

Set to false to disable all GUI stuff. Note that for a non-GUI daemon, you might want to use QCoreApplication and a KComponentData instance instead. You'll save an unnecessary dependency to kdeui. The main difference is that you will have to do a number of things yourself:

Parses command-line arguments. Use this constructor when you you need to use a non-default visual or colormap.

Parameters

display

Will be passed to Qt as the X display. The display must be valid and already opened.

visual

A pointer to the X11 visual that should be used by the application. Note that only TrueColor visuals are supported on depths greater than 8 bpp. If this parameter is NULL, the default visual will be used instead.

colormap

The colormap that should be used by the application. If this parameter is 0, the default colormap will be used instead.

This is similar to the global QApplication pointer qApp. It allows access to the single global KApplication object, since more than one cannot be created in the same application. It saves you the trouble of having to pass the pointer explicitly to every function that may require it.