Skip to content

NotZeroValidator

Qt Base Class: QValidator

Signature: QValidator(self, parent: Optional[PySide6.QtCore.QObject] = None) -> None

Base classes

Name Children Inherits
BlacklistValidator
prettyqt.validators.blacklistvalidator

⋔ Inheritance diagram

graph TD
  1473296406192["validators.NotZeroValidator"]
  1473296396432["validators.BlacklistValidator"]
  1473245568976["gui.Validator"]
  1473245536768["gui.ValidatorMixin"]
  1473299815024["core.ObjectMixin"]
  140713234304496["builtins.object"]
  1473289208592["QtGui.QValidator"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  1473296396432 --> 1473296406192
  1473245568976 --> 1473296396432
  1473245536768 --> 1473245568976
  1473299815024 --> 1473245536768
  140713234304496 --> 1473299815024
  1473289208592 --> 1473245568976
  1473288842240 --> 1473289208592
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: BlacklistValidator

Source code in prettyqt\validators\blacklistvalidator.py
class NotZeroValidator(BlacklistValidator):
    ID = "not_zero"

    def __init__(self, parent: QtCore.QObject | None = None):
        super().__init__(parent)
        self._options = ["0"]

⌗ Property table

Qt Property Type Doc
objectName QString

Validator ID: not_zero