Hi all,
The QTextEdit doesn't appear to have a pasteAvailable() signal but provides a canPaste() function. I'm currently setting my paste action using canPaste() in the focusInEvent.
This approach works fine, except when I cut / copy from within the text edit directly using the keyboard. Beacuse the focus hasn't changed I don't know that I can now enable my paste action.
Annoyingly, although signals are provided for copy, undo & redoAvailable(), there aren't corresponding canCopy, canUndo and canRedo() functions, though this can be worked around by storing the state when the edit looses / gains focus.
Regards,
Chris.
Bookmarks