THypterTextToolBar Class
该类为自定义的一个toolbar,可以绑定指定的QTextEdit。 More...
Header: | #include <THypterTextToolBar> |
Inherits: | QToolBar |
Properties
- textEdit : QTextEdit *
Public Functions
THypterTextToolBar(QWidget *parent = nullptr) | |
~THypterTextToolBar() |
Public Slots
void | clearBgColor() |
void | currentCharFormatChanged(const QTextCharFormat &iFormat) |
void | cursorPositionChanged() |
QString | defaultImageDir() const |
void | screenBtnshot() |
void | screenshot() |
void | setDefaultImageDir(const QString &iPhotoDir) |
void | setTextEdit(QTextEdit *iTextEditPtr) |
void | showBgMenu() |
void | showColorMenu() |
void | showUnderLineMenu() |
void | textAlign(QAction *iActionPtr) |
void | textBgColor() |
void | textBgColor(QColor iColor) |
void | textBold() |
void | textColor() |
void | textColor(QColor iColor) |
QTextEdit * | textEdit() const |
void | textFont(const QString &iFontStr) |
void | textInsertPhoto() |
void | textInsertPixmap(QPixmap iPixmap, QString iJsonStr) |
void | textItalic() |
void | textSize(const QString &iPStr) |
void | textUnderline() |
void | textUnderlineColor() |
void | textUnderlineColor(QColor iColor) |
void | textUnderlineStyle() |
Additional Inherited Members
- 8 signals inherited from QToolBar
- 3 signals inherited from QWidget
- 5 static public members inherited from QWidget
- 4 protected functions inherited from QToolBar
- 35 protected functions inherited from QWidget
- 1 protected slot inherited from QWidget
Detailed Description
该类为自定义的一个toolbar,可以绑定指定的QTextEdit。
Property Documentation
textEdit : QTextEdit *
Access functions:
QTextEdit * | textEdit() const |
void | setTextEdit(QTextEdit *iTextEditPtr) |
Member Function Documentation
THypterTextToolBar::THypterTextToolBar(QWidget *parent = nullptr)
Default constructs an instance of THypterTextToolBar.
THypterTextToolBar::~THypterTextToolBar()
Destroys the instance of THypterTextToolBar.
[slot]
void THypterTextToolBar::clearBgColor()
[slot]
void THypterTextToolBar::currentCharFormatChanged(const QTextCharFormat &iFormat)
[slot]
void THypterTextToolBar::cursorPositionChanged()
[slot]
QString THypterTextToolBar::defaultImageDir() const
See also setDefaultImageDir().
[slot]
void THypterTextToolBar::screenBtnshot()
[slot]
void THypterTextToolBar::screenshot()
[slot]
void THypterTextToolBar::setDefaultImageDir(const QString &iPhotoDir)
See also defaultImageDir().