wwWidgets Home · All Classes · Main Classes · Grouped Classes · Functions |
The QwwRichTextButton class provides a button that can display rich text content. More...
#include <QwwRichTextButton>
This class is not part of the Qt GUI Framework Edition.
Inherits QAbstractButton.
QwwRichTextButton ( QWidget * parent = 0 ) | |
QwwRichTextButton ( QTextDocument * doc, QWidget * parent = 0 ) | |
QTextDocument * | document () const |
QString | html () const |
void | setDocument ( QTextDocument * doc ) |
void | setHtml ( const QString & txt ) |
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().
This property holds the text displayed on the button.
Access functions:
QString | html () const |
void | setHtml ( const QString & txt ) |
Constructs a rich text button with a given parent.
Constructs a rich text button with a given parent and doc set as the document
Returns the current document for the button.
See also setDocument().
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-2010 Witold Wysota | Trademarks | wwWidgets 1.0.0 |