PythonQt.QtGui.QTextLength · declarations 001
Back to PythonQt.QtGui.QTextLength
FixedLength
instance-attribute
FixedLength: Any
PercentageLength
instance-attribute
PercentageLength: Any
VariableLength
instance-attribute
VariableLength: Any
rawValue
rawValue() -> float
X.rawValue() -> float
Supplemental documentation: Qt 5 reference:
qreal QTextLength::rawValue() const
Returns the constraint value that is specific for the type of the length. If the length is QTextLength::PercentageLength then the raw value is in percent, in the range of 0 to 100. If the length is QTextLength::FixedLength then that fixed amount is returned. For variable lengths, zero is returned.
Upstream PySide2 reference signatures (binding differences may apply):
rawValue(self) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextlength.html#rawValue
type
type() -> Any
X.type()
Supplemental documentation: Qt 5 reference:
QTextLength::Type QTextLength::type() const
Returns the type of this length object.
See also QTextLength::Type.
Upstream PySide2 reference signatures (binding differences may apply):
type(self) -> PySide2.QtGui.QTextLength.Type
Source: https://doc.qt.io/archives/qt-5.15/qtextlength.html#type
value
value(maximumLength: float) -> float
X.value(maximumLength) -> float
Supplemental documentation: Qt 5 reference:
qreal QTextLength::value(qreal maximumLength) const
Returns the effective length, constrained by the type of the length object and the specified maximumLength.
See also type().
Upstream PySide2 reference signatures (binding differences may apply):
value(self, maximumLength: float) -> float
Source: https://doc.qt.io/archives/qt-5.15/qtextlength.html#value