Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Chapter 10. Main Windows and Actions > Clipboard and Data Transfer Operations

10.4. Clipboard and Data Transfer Operations

Sometimes it is necessary to take data from one place and “send” it to another. One way is clipboard “cut and paste,” and another is “drag and drop.” The data transfer classes used are the same for both.

Every Qt application has access to the system clipboard from qApp->clipboard(). The clipboard holds onto typed data (text, graphics, URLs, or custom data). To place data into the clipboard, you create a QMimeData, encode the data somehow, and call QClipBoard->setMimeData().


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial