Skip to content

TextLength

Qt Base Class: QTextLength

Signature: QTextLength(self) -> None QTextLength(self, QTextLength: PySide6.QtGui.QTextLength) -> None QTextLength(self, type: PySide6.QtGui.QTextLength.Type, value: float) -> None

Base classes

Name Children Inherits
QTextLength
PySide6.QtGui
QTextLength(self) -> None

⋔ Inheritance diagram

graph TD
  1473245614848["gui.TextLength"]
  1473299677408["QtGui.QTextLength"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473299677408 --> 1473245614848
  1473291690208 --> 1473299677408
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QTextLength

Source code in prettyqt\gui\textlength.py
class TextLength(QtGui.QTextLength):
    def __repr__(self):
        return get_repr(self, self.type(), self.rawValue())

    def get_type(self) -> TypeStr:
        """Return type of this length object.

        Returns:
            timer type
        """
        return TYPES.inverse[self.type()]

get_type() -> TypeStr

Return type of this length object.

Source code in prettyqt\gui\textlength.py
def get_type(self) -> TypeStr:
    """Return type of this length object.

    Returns:
        timer type
    """
    return TYPES.inverse[self.type()]