Results 1 to 10 of 10

Thread: PRIMARY Selections

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: PRIMARY Selections

    Qt Code:
    1. QClipboard *clip = QApplication::clipboard();
    2. clip->setText(lineEdit->text(), QClipboard::Clipboard); // copy to global clipboard
    3. clip->setText(lineEdit->text(), QClipboard::Selection); // copy to selection clipboard
    To copy to clipboard, switch view to plain text mode 
    Is that what you want?

  2. The following 2 users say thank you to wysota for this useful post:

    hayati (11th September 2006), sunil.thaha (12th September 2006)

Similar Threads

  1. Sharing Selections between Model and ProxyModel
    By mentat in forum Qt Programming
    Replies: 14
    Last Post: 27th January 2010, 18:31

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.