Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Clipboard hangs up other applications
Forum Updated to NodeBB v4.3 + New Features

Clipboard hangs up other applications

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 519 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alain coste
    wrote on last edited by
    #1

    Hello
    I am a QtNewbie, and I have a problem with the use of the clipboard.
    If I execute the following code :

    QApplication applic(argc,argv);
    QClipboard *clipboard = QApplication::clipboard();
    clipboard->setText("blablabla");

    Any application which tries to paste the content of the clipboard hangs up, and wakes up only if I kill the QApplication applic.
    It seems Qt doesn't release the clipboard after setting text. I couldn't find any method to do this. What am I missing ?

    By cons, if I copy to the clipboard without Qt (via OpenClipboard ... SetClipboardData ... CloseClipboard) everything works fine.

    My OS is Windows XP (sorry...).

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved