A widget for displaying characters available in a preset font, and allowing users to select an individual character.
More...
#include <characterwidget.h>
A widget for displaying characters available in a preset font, and allowing users to select an individual character.
Definition at line 67 of file characterwidget.h.
| CharacterWidget::CharacterWidget |
( |
QWidget * |
parent = nullptr | ) |
|
| QChar CharacterWidget::character |
( |
| ) |
const |
|
inline |
| void CharacterWidget::characterSelected |
( |
QChar |
character | ) |
|
|
signal |
Emitted when a character is selected in the widget.
| int CharacterWidget::columns |
( |
| ) |
const |
|
inline |
Returns the number of columns of characters shown in the widget.
Definition at line 86 of file characterwidget.h.
| QFont CharacterWidget::font |
( |
| ) |
const |
|
inline |
| void CharacterWidget::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
| void CharacterWidget::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
| void CharacterWidget::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
| void CharacterWidget::setCharacter |
( |
QChar |
character | ) |
|
|
slot |
| void CharacterWidget::setColumns |
( |
int |
columns | ) |
|
|
slot |
Sets the number of columns of characters to show in the widget.
- Since
- QGIS 3.0
Definition at line 99 of file characterwidget.cpp.
| void CharacterWidget::setFont |
( |
const QFont & |
font | ) |
|
|
slot |
| void CharacterWidget::setFontSize |
( |
double |
fontSize | ) |
|
|
slot |
Sets the font size (in points) to render in the widget.
- Since
- QGIS 3.0
Definition at line 70 of file characterwidget.cpp.
| void CharacterWidget::setFontStyle |
( |
const QString & |
fontStyle | ) |
|
|
slot |
Sets the font style to show in the widget.
- Since
- QGIS 3.0
Definition at line 78 of file characterwidget.cpp.
| QSize CharacterWidget::sizeHint |
( |
| ) |
const |
|
override |
| 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.
| void CharacterWidget::updateFontMerging |
( |
bool |
enable | ) |
|
|
slot |
| QChar CharacterWidget::character |
|
readwrite |
| int CharacterWidget::columns |
|
readwrite |
| QFont CharacterWidget::font |
|
readwrite |
The documentation for this class was generated from the following files: