Skip to content

PlaceContentRequest

Qt Base Class: QPlaceContentRequest

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

Base classes

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

⋔ Inheritance diagram

graph TD
  1473573479520["location.PlaceContentRequest"]
  1473573379968["QtLocation.QPlaceContentRequest"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473573379968 --> 1473573479520
  1473291690208 --> 1473573379968
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QPlaceContentRequest

Represents the parameters of a content request.

Source code in prettyqt\location\placecontentrequest.py
class PlaceContentRequest(location.QPlaceContentRequest):
    """Represents the parameters of a content request."""

    def set_content_type(
        self, typ: location.placecontent.TypeStr | location.PlaceContent.Type
    ):
        """Set the content type.

        Args:
            typ: Relevance type
        """
        self.setContentType(location.placecontent.TYPE.get_enum_value(typ))

    def get_content_type(self) -> location.placecontent.TypeStr:
        """Return current content type.

        Returns:
            Relevance type
        """
        return location.placecontent.TYPE.inverse[self.contentType()]

get_content_type() -> location.placecontent.TypeStr

Return current content type.

Source code in prettyqt\location\placecontentrequest.py
def get_content_type(self) -> location.placecontent.TypeStr:
    """Return current content type.

    Returns:
        Relevance type
    """
    return location.placecontent.TYPE.inverse[self.contentType()]

set_content_type(typ: location.placecontent.TypeStr | location.PlaceContent.Type)

Set the content type.

Parameters:

Name Type Description Default
typ TypeStr | Type

Relevance type

required
Source code in prettyqt\location\placecontentrequest.py
def set_content_type(
    self, typ: location.placecontent.TypeStr | location.PlaceContent.Type
):
    """Set the content type.

    Args:
        typ: Relevance type
    """
    self.setContentType(location.placecontent.TYPE.get_enum_value(typ))