Previous topic
Next topic
Quick search
QWebEngineContextMenuRequest¶
The QWebEngineContextMenuRequest
class provides request for populating or extending a context menu with actions. More…
Synopsis¶
Functions¶
def
editFlags
()def
isAccepted
()def
isContentEditable
()def
linkText
()def
linkUrl
()def
mediaFlags
()def
mediaType
()def
mediaUrl
()def
misspelledWord
()def
position
()def
selectedText
()def
setAccepted
(accepted)def
spellCheckerSuggestions
()
Detailed Description¶
QWebEngineContextMenuRequest
is returned by lastContextMenuRequest()
after a context menu event, and contains information about where the context menu event took place. This is also in the context in which any context specific WebAction
will be performed.
- class PySide6.QtWebEngineCore.QWebEngineContextMenuRequest¶
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.MediaType¶
This enum describes the media type of the context menu request if any.
Constant
Description
QWebEngineContextMenuRequest.MediaTypeNone
The context is not a media type.
QWebEngineContextMenuRequest.MediaTypeImage
The context is an image element.
QWebEngineContextMenuRequest.MediaTypeVideo
The context is a video element.
QWebEngineContextMenuRequest.MediaTypeAudio
The context is an audio element.
QWebEngineContextMenuRequest.MediaTypeCanvas
The context is a canvas element.
QWebEngineContextMenuRequest.MediaTypeFile
The context is a file.
QWebEngineContextMenuRequest.MediaTypePlugin
The context is a plugin element.
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.MediaFlag¶
The current media element’s status and its available operations. MediaNone
if the selected web page content is not a media element.
Constant
Description
QWebEngineContextMenuRequest.MediaInError
An error occurred.
QWebEngineContextMenuRequest.MediaPaused
Media is paused.
QWebEngineContextMenuRequest.MediaMuted
Media is muted.
QWebEngineContextMenuRequest.MediaLoop
Media can be looped.
QWebEngineContextMenuRequest.MediaCanSave
Media can be saved.
QWebEngineContextMenuRequest.MediaHasAudio
Media has audio.
QWebEngineContextMenuRequest.MediaCanToggleControls
Media can show controls.
QWebEngineContextMenuRequest.MediaControls
Media controls are shown.
QWebEngineContextMenuRequest.MediaCanPrint
Media is printable.
QWebEngineContextMenuRequest.MediaCanRotate
Media is rotatable.
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.EditFlag¶
The available edit operations in the current context menu request.
Constant
Description
QWebEngineContextMenuRequest.CanUndo
Undo is available.
QWebEngineContextMenuRequest.CanRedo
Redo is available.
QWebEngineContextMenuRequest.CanCut
Cut is available.
QWebEngineContextMenuRequest.CanCopy
Copy is available.
QWebEngineContextMenuRequest.CanPaste
Paste is available.
QWebEngineContextMenuRequest.CanDelete
Delete is available.
QWebEngineContextMenuRequest.CanSelectAll
Select All is available.
QWebEngineContextMenuRequest.CanTranslate
Translate is available.
QWebEngineContextMenuRequest.CanEditRichly
Context is richly editable.
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.editFlags()¶
- Return type
EditFlags
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.isAccepted()¶
- Return type
bool
This property holds Whether the request is accepted..
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.isContentEditable()¶
- Return type
bool
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.linkText()¶
- Return type
str
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.linkUrl()¶
- Return type
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.mediaFlags()¶
- Return type
MediaFlags
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.mediaUrl()¶
- Return type
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.misspelledWord()¶
- Return type
str
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.position()¶
- Return type
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.selectedText()¶
- Return type
str
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.setAccepted(accepted)¶
- Parameters
accepted – bool
This property holds Whether the request is accepted..
- PySide6.QtWebEngineCore.QWebEngineContextMenuRequest.spellCheckerSuggestions()¶
- Return type
list of strings
© 2022 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.