TEvaluableLineEdit Class
自动运算数学表达式结果的输入框。 More...
Header: | #include <TEvaluableLineEdit> |
Inherits: | TLineEdit |
Properties
- clearInvalid : bool
- clearZero : bool
- precision : int
- 1 property inherited from TLineEdit
- 19 properties inherited from QLineEdit
- 58 properties inherited from QWidget
Public Functions
TEvaluableLineEdit(QWidget *parent = 0) | |
~TEvaluableLineEdit() | |
bool | clearInvalid() const |
bool | clearZero() const |
int | precision() const |
- 1 public function inherited from TLineEdit
- 59 public functions inherited from QLineEdit
- 213 public functions inherited from QWidget
Public Slots
virtual QVariant | getData(const QString &key = "", const QVariant &options = QVariant()) |
void | setClearInvalid(bool clear) |
void | setClearZero(bool clear) |
virtual void | setData(const QString &key, const QVariant &data) |
void | setPrecision(int precs) |
- 5 public slots inherited from TLineEdit
- 8 public slots inherited from QLineEdit
- 9 public slots inherited from TUiInterface
- 19 public slots inherited from QWidget
Protected Slots
void | onEditFinished() |
Additional Inherited Members
- 3 signals inherited from TLineEdit
- 6 signals inherited from QLineEdit
- 1 signal inherited from TUiInterface
- 3 signals inherited from QWidget
- 5 static public members inherited from QWidget
- 3 protected functions inherited from TLineEdit
- 17 protected functions inherited from QLineEdit
- 2 protected functions inherited from TUiInterface
- 35 protected functions inherited from QWidget
Detailed Description
自动运算数学表达式结果的输入框。
Property Documentation
clearInvalid : bool
Access functions:
bool | clearInvalid() const |
void | setClearInvalid(bool clear) |
clearZero : bool
Access functions:
bool | clearZero() const |
void | setClearZero(bool clear) |
precision : int
Access functions:
int | precision() const |
void | setPrecision(int precs) |
Member Function Documentation
TEvaluableLineEdit::TEvaluableLineEdit(QWidget *parent = 0)
Default constructs an instance of TEvaluableLineEdit.
TEvaluableLineEdit::~TEvaluableLineEdit()
Destroys the instance of TEvaluableLineEdit.
[virtual slot]
QVariant TEvaluableLineEdit::getData(const QString &key = "", const QVariant &options = QVariant())
[protected slot]
void TEvaluableLineEdit::onEditFinished()
[slot]
void TEvaluableLineEdit::setClearInvalid(bool clear)
TEvaluableLineEdit::setClearInvalid 完成编辑时,是否清除非法的输入。 clear
Note: Setter function for property clearInvalid.
See also clearInvalid().
[slot]
void TEvaluableLineEdit::setClearZero(bool clear)
TEvaluableLineEdit::setClearZero 在 precision 不为0时,设置是否清除小数末尾的0. clear
Note: Setter function for property clearZero.
See also clearZero().
[virtual slot]
void TEvaluableLineEdit::setData(const QString &key, const QVariant &data)
[slot]
void TEvaluableLineEdit::setPrecision(int precs)
TEvaluableLineEdit::setPrecision 设置结果显示的小数位。为0时,表示结果为整数。 precs
Note: Setter function for property precision.
See also precision().