title: Paste From QT Window to Another Application Input Widget
body: <p>I am very new to C++ programming and the bulk of my program will be using the QT libraries. However, there is one part where I believe I will need to use Win32.</p>
  
  <p>The scenario I want to code for is as follows:</p>
  
  <p>I will have a QT application running. I want to be able to take some text which has been typed into a TextBox on the QT Window and paste that text into a TextBox in another application e.g. the address bar of Chrome, the address bar of Windows Explorer.</p>
  
  <p>I want to be able to do that as a response to a button click on the QT Window. So, it would all happen in 3 steps. For example:</p>
  
  <ol>
  <li>User types text into QT Window; </li>
  <li>User places cursor in address bar of Chrome (Browser);</li>
  <li>User clicks button on Window which pastes text into address bar of Chrome.</li>
  </ol>
  
  <p>A nudge in the right direction would be most appreciated.</p>
  
  <p><strong>Edit - Additional Info</strong></p>
  
  <p>The application I’m building is a self-set assignment. I want to build a clipboard manager, similar to this old Delphi application <a href="http://www.joejoesoft.com/vcms/97/" rel="nofollow">http://www.joejoesoft.com/vcms/97/</a> . It will run in the system tray, in a minimised state. </p>
  
  <ol>
  <li>The user, will put their focus into a text input in some application
  which is running on their Windows machine e.g. Notepad.</li>
  <li>Then, they will hit a hot key combination which will open a form (my QT Window.</li>
  <li>The application will have been collecting clips as the user presses Ctrl-C (or by right-clicking) and those will be listed in that QT Form (just like the app in the link above).</li>
  <li>The user then clicks on the particular item that they want paste and it will be pasted into the original input that they had put the cursor into.</li>
  </ol>
  
  <p><strong>Further Edit - further info</strong></p>
  
  <p>I'll break step 4 into a couple of sub-steps as it is causing confusion:</p>
  
  <ol>
  <li>The user then clicks on the particular item that they want paste</li>
  <li>Focus changes from QT Window back to the window of the other Win32 application which originally had focus</li>
  <li>Content is pasted into the input control which now has the focus</li>
  </ol>
  
  <p>I pretty much know how I can gather up items when the user copies things. But I have no idea how I will paste from my application to the target application.</p>
  
  <p>Cheers</p>