A widget for displaying characters available in a preset font, and allowing users to select an individual character.
More...
#include <characterwidget.h>
|
| void | clearCharacter () |
| | Clears the currently selected character in the widget.
|
| void | setCharacter (QChar character) |
| | Sets the currently selected character in the widget.
|
| void | setColumns (int columns) |
| | Sets the number of columns of characters to show in the widget.
|
| void | setFont (const QFont &font) |
| | Sets the font to show in the widget.
|
| void | setFontSize (double fontSize) |
| | Sets the font size (in points) to render in the widget.
|
| void | setFontStyle (const QString &fontStyle) |
| | Sets the font style to show in the widget.
|
| void | updateFontMerging (bool enable) |
|
| | CharacterWidget (QWidget *parent=nullptr) |
| | Constructor for CharacterWidget.
|
| QChar | character () const |
| | Returns the currently selected character in the widget.
|
| int | columns () const |
| | Returns the number of columns of characters shown in the widget.
|
| QFont | font () const |
| | Returns the font shown in the widget.
|
| QSize | sizeHint () const override |
| int | squareSize () const |
| | Returns the size (in pixels) of the square used to render each character preview.
|
A widget for displaying characters available in a preset font, and allowing users to select an individual character.
Definition at line 68 of file characterwidget.h.
◆ CharacterWidget()
| CharacterWidget::CharacterWidget |
( |
QWidget * | parent = nullptr | ) |
|
◆ character()
| QChar CharacterWidget::character |
( |
| ) |
const |
|
inline |
◆ characterSelected
| void CharacterWidget::characterSelected |
( |
QChar | character | ) |
|
|
signal |
Emitted when a character is selected in the widget.
◆ clearCharacter
| void CharacterWidget::clearCharacter |
( |
| ) |
|
|
slot |
◆ columns()
| int CharacterWidget::columns |
( |
| ) |
const |
|
inline |
Returns the number of columns of characters shown in the widget.
Definition at line 86 of file characterwidget.h.
◆ font()
| QFont CharacterWidget::font |
( |
| ) |
const |
|
inline |
◆ keyPressEvent()
| void CharacterWidget::keyPressEvent |
( |
QKeyEvent * | event | ) |
|
|
overrideprotected |
◆ mouseMoveEvent()
| void CharacterWidget::mouseMoveEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
| void CharacterWidget::mousePressEvent |
( |
QMouseEvent * | event | ) |
|
|
overrideprotected |
◆ paintEvent()
| void CharacterWidget::paintEvent |
( |
QPaintEvent * | event | ) |
|
|
overrideprotected |
◆ resizeEvent()
| void CharacterWidget::resizeEvent |
( |
QResizeEvent * | event | ) |
|
|
overrideprotected |
◆ setCharacter
| void CharacterWidget::setCharacter |
( |
QChar | character | ) |
|
|
slot |
◆ setColumns
| void CharacterWidget::setColumns |
( |
int | columns | ) |
|
|
slot |
Sets the number of columns of characters to show in the widget.
Definition at line 107 of file characterwidget.cpp.
◆ setFont
| void CharacterWidget::setFont |
( |
const QFont & | font | ) |
|
|
slot |
◆ setFontSize
| void CharacterWidget::setFontSize |
( |
double | fontSize | ) |
|
|
slot |
Sets the font size (in points) to render in the widget.
Definition at line 78 of file characterwidget.cpp.
◆ setFontStyle
| void CharacterWidget::setFontStyle |
( |
const QString & | fontStyle | ) |
|
|
slot |
◆ sizeHint()
| QSize CharacterWidget::sizeHint |
( |
| ) |
const |
|
override |
◆ squareSize()
| int CharacterWidget::squareSize |
( |
| ) |
const |
|
inline |
Returns the size (in pixels) of the square used to render each character preview.
Definition at line 91 of file characterwidget.h.
◆ updateFontMerging
| void CharacterWidget::updateFontMerging |
( |
bool | enable | ) |
|
|
slot |
◆ character
| QChar CharacterWidget::character |
|
readwrite |
◆ columns
| int CharacterWidget::columns |
|
readwrite |
◆ font
| QFont CharacterWidget::font |
|
readwrite |
The documentation for this class was generated from the following files: