Sounds like you want to read QClipboard
What have you tried? How has it worked or not worked?