THypterTextToolBar Class

该类为自定义的一个toolbar,可以绑定指定的QTextEditMore...

Header: #include <THypterTextToolBar>
Inherits: QToolBar

Properties

  • 7 properties inherited from QToolBar
  • 58 properties inherited from QWidget

Public Functions

THypterTextToolBar(QWidget *parent = nullptr)
~THypterTextToolBar()
  • 31 public functions inherited from QToolBar
  • 213 public functions inherited from QWidget

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()
  • 2 public slots inherited from QToolBar
  • 19 public slots inherited from QWidget

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().

[slot] void THypterTextToolBar::showBgMenu()

[slot] void THypterTextToolBar::showColorMenu()

[slot] void THypterTextToolBar::showUnderLineMenu()

[slot] void THypterTextToolBar::textAlign(QAction *iActionPtr)

[slot] void THypterTextToolBar::textBgColor()

[slot] void THypterTextToolBar::textBgColor(QColor iColor)

[slot] void THypterTextToolBar::textBold()

[slot] void THypterTextToolBar::textColor()

[slot] void THypterTextToolBar::textColor(QColor iColor)

[slot] void THypterTextToolBar::textFont(const QString &iFontStr)

[slot] void THypterTextToolBar::textInsertPhoto()

[slot] void THypterTextToolBar::textInsertPixmap(QPixmap iPixmap, QString iJsonStr)

[slot] void THypterTextToolBar::textItalic()

[slot] void THypterTextToolBar::textSize(const QString &iPStr)

[slot] void THypterTextToolBar::textUnderline()

[slot] void THypterTextToolBar::textUnderlineColor()

[slot] void THypterTextToolBar::textUnderlineColor(QColor iColor)

[slot] void THypterTextToolBar::textUnderlineStyle()