How to paste system clipboard content to outside of Qt app
-
I want to paste the clipboard content to some place (say firefox) without pressing CTRL+V. How can I do this? Note that I keep track and ensure that clipboard content is text.
I have also asked this on stackoverflow but no useful answer came yet
"http://stackoverflow.com/questions/8407937/how-to-paste-from-system-clipboard-content-to-an-arbitrary-window-using-qt":http://stackoverflow.com/questions/8407937/how-to-paste-from-system-clipboard-content-to-an-arbitrary-window-using-qt -
I think you have to deal natively with the clipboard, I'm not aware of a way of doing this in a portable manner.
-
can you give me a hint about from where to start to implement this natively for Linux.
-
My guess is that you will have to somehow send key events to the application you want to paste into. However, that is outside the scope of Qt. You will have to deal with that in a platform-dependent way yourself.