Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. How to paste system clipboard content to outside of Qt app
Forum Updated to NodeBB v4.3 + New Features

How to paste system clipboard content to outside of Qt app

Scheduled Pinned Locked Moved General and Desktop
4 Posts 3 Posters 1.7k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    destan
    wrote on last edited by
    #1

    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

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fluca1978
      wrote on last edited by
      #2

      I think you have to deal natively with the clipboard, I'm not aware of a way of doing this in a portable manner.

      1 Reply Last reply
      0
      • D Offline
        D Offline
        destan
        wrote on last edited by
        #3

        can you give me a hint about from where to start to implement this natively for Linux.

        1 Reply Last reply
        0
        • A Offline
          A Offline
          andre
          wrote on last edited by
          #4

          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.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved