Clipboard hangs up other applications



  • 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...).


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.