Skip to content

DesktopServices

Base classes

Name Children Inherits
QDesktopServices
PySide6.QtGui
QDesktopServices(self, /) -> None

⋔ Inheritance diagram

graph TD
  316828114["gui.DesktopServices"]
  44014177["QtGui.QDesktopServices"]
  37984305["Shiboken.Object"]
  2751680898["builtins.object"]
  44014177 --> 316828114
  37984305 --> 44014177
  2751680898 --> 37984305

🛈 DocStrings

Bases: QDesktopServices

Methods for accessing common desktop services.

Source code in prettyqt/gui/desktopservices.py
class DesktopServices(gui.QDesktopServices):
    """Methods for accessing common desktop services."""

    @classmethod
    def open_url(cls, location: datatypes.PathType | datatypes.UrlType) -> bool:
        if not isinstance(location, core.QUrl):
            location = core.Url.from_user_input(os.fspath(location))
        return cls.openUrl(location)

:fa-brands-github: Show source on GitHub