Hi,

I have a QML TextArea, and I need to know the text pasted using the 'paste' option in the contexte menu (mouse right button).

I can check the paste using keys with:

Qt Code:
  1. Keys.onPressed: function(keyEvent) {
  2. .....
  3. if (keyEvent.matches(StandardKey.Paste)){
  4. ....
To copy to clipboard, switch view to plain text mode 

and there I can use QT code:

Qt Code:
  1. QClipboard* pClipboard = qApp->clipboard();
  2. if (pClipboard)
  3. {
  4. QClipboard::Mode eMode = QClipboard::Clipboard;
  5. const QMimeData* pMimeData = pClipboard->mimeData( eMode );
  6. ....
To copy to clipboard, switch view to plain text mode 
to get the text in clipboard, before being pasted.

How can I do the same using whe mouse 'paste' option?

Thanks,
Diego