Skip to content

MimeType

Qt Base Class: QMimeType

Signature: QMimeType(self) -> None QMimeType(self, other: PySide6.QtCore.QMimeType) -> None

Base classes

Name Children Inherits
QMimeType
PySide6.QtCore
QMimeType(self) -> None

⋔ Inheritance diagram

graph TD
  1473299863824["core.MimeType"]
  1473243816432["QtCore.QMimeType"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473243816432 --> 1473299863824
  1473291690208 --> 1473243816432
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QMimeType

Describes types of file or data, represented by a MIME type string.

Source code in prettyqt\core\mimetype.py
class MimeType(QtCore.QMimeType):
    """Describes types of file or data, represented by a MIME type string."""

    def __bool__(self):
        return self.isValid()

    def __repr__(self):
        return get_repr(self, self.name())

    def __str__(self):
        return self.name()