Tips for KDE App Programmersunleashing the power of the KDE libraries |
|
|
Table of Contents
Loading and saving configuration settings
The Docking widgets onto the panel
You can have toplevel (parentless) widgets swallowed, a la kscd,
by kpanel if your users are using the KWM window manager. To do this,
you just need to call the static #include<kwm.h> ... // Create a top level widget QWidget *myNewWidget = new QWidget( 0 ); ... // Dock it KWM::setDockWindow( myNewWidget->winId() ); The panel will swallow the window as soon as it is shown and will resize it to a small square that will fit in the panel, the exact size depending on the user's panel size setting. |