Skip to content

PlaceSupplier

Qt Base Class: QPlaceSupplier

Signature: QPlaceSupplier(self) -> None QPlaceSupplier(self, other: PySide6.QtLocation.QPlaceSupplier) -> None

Base classes

Name Children Inherits
QPlaceSupplier
PySide6.QtLocation
QPlaceSupplier(self) -> None

⋔ Inheritance diagram

graph TD
  1473573467808["location.PlaceSupplier"]
  1473573373136["QtLocation.QPlaceSupplier"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573373136 --> 1473573467808
  1473291690208 --> 1473573373136
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QPlaceSupplier

Source code in prettyqt\location\placesupplier.py
class PlaceSupplier(location.QPlaceSupplier):
    def __bool__(self):
        return not self.isEmpty()

    def get_icon(self) -> location.PlaceIcon | None:
        icon = self.icon()
        return None if icon.isEmpty() else location.PlaceIcon(icon)

    def set_url(self, url: datatypes.UrlType):
        url = core.Url(url)
        self.setUrl(url)

    def get_url(self) -> core.Url:
        return core.Url(self.url())