Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Clipboard hangs up other applications

    General and Desktop
    1
    1
    345
    Loading More Posts
    • 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
      alain coste last edited by

      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 Reply Quote 0
      • First post
        Last post