WebEngineContextMenuRequest
Qt Base Class: QWebEngineContextMenuRequest
Signature: None
Base classes
⋔ 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())
|
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())
|
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())
|
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())
|
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())
|
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())
|
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())
|
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())
|
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())
|
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.
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.
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.
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 |
|