Skip to content

WebEngineContextMenuRequest

Qt Base Class: QWebEngineContextMenuRequest

Signature: None

Base classes

Name Children Inherits
QWebEngineContextMenuRequest
PySide6.QtWebEngineCore

⋔ Inheritance diagram

graph TD
  1473574728832["webenginecore.WebEngineContextMenuRequest"]
  1473574689792["QtWebEngineCore.QWebEngineContextMenuRequest"]
  1473288842240["QtCore.QObject"]
  1473291690208["Shiboken.Object"]
  140713234304496["builtins.object"]
  1473574689792 --> 1473574728832
  1473288842240 --> 1473574689792
  1473291690208 --> 1473288842240
  140713234304496 --> 1473291690208

🛈 DocStrings

Bases: QWebEngineContextMenuRequest

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
class WebEngineContextMenuRequest(QtWebEngineCore.QWebEngineContextMenuRequest):
    def get_media_url(self) -> core.Url:
        return core.Url(self.mediaUrl())

    def get_link_url(self) -> core.Url:
        return core.Url(self.linkUrl())

    def get_media_type(self) -> MediaTypeStr:
        """Get media type."""
        return MEDIA_TYPES.inverse[self.mediaType()]

    def get_media_flags(self) -> list[MediaFlagStr]:
        """Get media flags."""
        return MEDIA_FLAGS.get_list(self.mediaFlags())

    def get_edit_flags(self) -> list[MediaFlagStr]:
        """Get edit flags."""
        return EDIT_FLAGS.get_list(self.editFlags())

    def can_undo(self) -> bool:
        """Returns whether undo is possible."""
        return bool(mod.EditFlag.CanUndo & self.editFlags())

    def can_redo(self) -> bool:
        """Returns whether redo is possible."""
        return bool(mod.EditFlag.CanRedo & self.editFlags())

    def can_cut(self) -> bool:
        """Returns whether cut is possible."""
        return bool(mod.EditFlag.CanCut & self.editFlags())

    def can_copy(self) -> bool:
        """Returns whether copy is possible."""
        return bool(mod.EditFlag.CanCopy & self.editFlags())

    def can_paste(self) -> bool:
        """Returns whether paste is possible."""
        return bool(mod.EditFlag.CanPaste & self.editFlags())

    def can_delete(self) -> bool:
        """Returns whether delete is possible."""
        return bool(mod.EditFlag.CanDelete & self.editFlags())

    def can_select_all(self) -> bool:
        """Returns whether select_all is possible."""
        return bool(mod.EditFlag.CanSelectAll & self.editFlags())

    def can_translate(self) -> bool:
        """Returns whether translate is possible."""
        return bool(mod.EditFlag.CanTranslate & self.editFlags())

    def can_edit_richly(self) -> bool:
        """Returns whether edit_richly is possible."""
        return bool(mod.EditFlag.CanEditRichly & self.editFlags())

can_copy() -> bool

Returns whether copy is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_copy(self) -> bool:
    """Returns whether copy is possible."""
    return bool(mod.EditFlag.CanCopy & self.editFlags())

can_cut() -> bool

Returns whether cut is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_cut(self) -> bool:
    """Returns whether cut is possible."""
    return bool(mod.EditFlag.CanCut & self.editFlags())

can_delete() -> bool

Returns whether delete is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_delete(self) -> bool:
    """Returns whether delete is possible."""
    return bool(mod.EditFlag.CanDelete & self.editFlags())

can_edit_richly() -> bool

Returns whether edit_richly is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_edit_richly(self) -> bool:
    """Returns whether edit_richly is possible."""
    return bool(mod.EditFlag.CanEditRichly & self.editFlags())

can_paste() -> bool

Returns whether paste is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_paste(self) -> bool:
    """Returns whether paste is possible."""
    return bool(mod.EditFlag.CanPaste & self.editFlags())

can_redo() -> bool

Returns whether redo is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_redo(self) -> bool:
    """Returns whether redo is possible."""
    return bool(mod.EditFlag.CanRedo & self.editFlags())

can_select_all() -> bool

Returns whether select_all is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_select_all(self) -> bool:
    """Returns whether select_all is possible."""
    return bool(mod.EditFlag.CanSelectAll & self.editFlags())

can_translate() -> bool

Returns whether translate is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_translate(self) -> bool:
    """Returns whether translate is possible."""
    return bool(mod.EditFlag.CanTranslate & self.editFlags())

can_undo() -> bool

Returns whether undo is possible.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def can_undo(self) -> bool:
    """Returns whether undo is possible."""
    return bool(mod.EditFlag.CanUndo & self.editFlags())

get_edit_flags() -> list[MediaFlagStr]

Get edit flags.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def get_edit_flags(self) -> list[MediaFlagStr]:
    """Get edit flags."""
    return EDIT_FLAGS.get_list(self.editFlags())

get_media_flags() -> list[MediaFlagStr]

Get media flags.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def get_media_flags(self) -> list[MediaFlagStr]:
    """Get media flags."""
    return MEDIA_FLAGS.get_list(self.mediaFlags())

get_media_type() -> MediaTypeStr

Get media type.

Source code in prettyqt\webenginecore\webenginecontextmenurequest.py
def get_media_type(self) -> MediaTypeStr:
    """Get media type."""
    return MEDIA_TYPES.inverse[self.mediaType()]

⌗ Property table

Qt Property Type Doc
objectName QString
position QPoint
selectedText QString
linkText QString
linkUrl QUrl
mediaUrl QUrl
mediaType QWebEngineContextMenuRequest::MediaType
isContentEditable bool
misspelledWord QString
spellCheckerSuggestions QStringList
accepted bool
mediaFlags QFlags
editFlags QFlags