wwWidgets Home · All Namespaces · All Classes · Main Classes · Grouped Classes · Modules · Functions

QwwRichTextButton Class Reference
[wwWidgets module]

The QwwRichTextButton class provides a button that can display rich text content. More...

 #include <QwwRichTextButton>

Properties

Public Functions

Public Slots


Detailed Description

The QwwRichTextButton class provides a button that can display rich text content.

This widget is similar in its behavior to QPushButton, but it can display not only plain text, but also rich text. The text to be displayed can be set either using the html property or by assigning a QTextDocument to the widget using setDocument().


Property Documentation

html : QString

This property holds the text displayed on the button.

Access functions:


Member Function Documentation

QwwRichTextButton::QwwRichTextButton ( QWidget * parent = 0 )

Constructs a rich text button with a given parent.

QwwRichTextButton::QwwRichTextButton ( QTextDocument * doc, QWidget * parent = 0 )

Constructs a rich text button with a given parent and doc set as the document

QTextDocument * QwwRichTextButton::document () const

Returns the current document for the button.

See also setDocument().

void QwwRichTextButton::setDocument ( QTextDocument * doc )

Makes doc the new document for the button.

The content of the document is displayed on the button. Widget does not take ownership of the document.

See also document().


Copyright © 2007-2009 Witold Wysota Trademarks
wwWidgets 0.9.6