class KTitleWidget


Table of contents
Modules
kdeui Classes
All Classes
Module kdeui
Namespace global
Class KTitleWidget
Inherits QWidget

Standard title widget with a white background and round border.

This class provides a widget often used for dialog titles.

Usage KTitleWidget is very simple to use. You can either use its default text (and pixmap) properties or display your own widgets in the title widget.

A title text with a left aligned pixmap:

titleWidget = new KTitleWidget(this);
titleWidget->setText(i18n("Title"));
titleWidget->setPixmap(KIcon("screen").pixmap(22, 22), KTitleWidget.ImageLeft);

Use it with a own widget:

checkboxTitleWidget = new KTitleWidget(this);

checkBoxTitleMainWidget = new QWidget(this); titleLayout = new QVBoxLayout(checkBoxTitleMainWidget); titleLayout->setMargin(6);

checkBox = new QCheckBox("Text Checkbox", checkBoxTitleMainWidget); titleLayout->addWidget(checkBox);

checkboxTitleWidget->setWidget(checkBoxTitleMainWidget);

See also KPageView Author Urs Wolfer \



enums

enum details

methods