Results 1 to 3 of 3

Thread: Copy string to Clipboard in Qt

  1. #1
    Join Date
    Nov 2020
    Location
    Hungary
    Posts
    4
    Platforms
    Windows

    Default Copy string to Clipboard in Qt

    Hello All,

    How to copy a string to Clipboard in Qt?
    Please send an example.
    (text="This is a text")

    Greetings,
    Gal Zsolt
    (~ CalmoSoft ~)
    Last edited by CalmoSoft; 12th November 2020 at 17:35.

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    4,769
    Thanks
    262
    Thanked 773 Times in 763 Posts
    Qt products
    Qt5
    Platforms
    Windows Android

    Default Re: Copy string to Clipboard in Qt

    Is this another question where you are posting on behalf of someone else and running an entirely separate thread on a different forum?

    Amazingly, if you type "Qt clipboard" into Google, the very first link is the documentation for the QClipboard class! And the first thing in the description of that class is an example of how to copy text!
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Nov 2020
    Location
    Hungary
    Posts
    4
    Platforms
    Windows

    Default Re: Copy string to Clipboard in Qt

    Hello d_stranz,

    Thanks for your useful help.
    I will use Google as you suggested.

    Greetings,
    Gal Zsolt
    (~ CalmoSoft ~)

Similar Threads

  1. How could I copy a tooltip message to the clipboard?
    By EveryoneCallsMeM in forum Newbie
    Replies: 1
    Last Post: 24th March 2019, 17:39
  2. QtCreator unable to copy to the clipboard...
    By squimmy in forum Qt Tools
    Replies: 4
    Last Post: 25th December 2012, 13:53
  3. copy - paste clipboard contents
    By viswanathan in forum Newbie
    Replies: 1
    Last Post: 8th January 2010, 13:10
  4. Problem with copy text to clipboard
    By weiching in forum Qt Programming
    Replies: 1
    Last Post: 22nd December 2008, 13:44
  5. How to copy QTableWidget to Clipboard
    By ranna in forum Qt Programming
    Replies: 1
    Last Post: 30th September 2008, 16:47

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.