Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-16194

Clipboard gets cleared when application quits

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.7.1
    • GUI: Window management
    • None
    • Debian/Lenny

    Description

      Under Linux, when a Qt application copies something to the clipboard (e.g. via QClipboard::setMimeData() or QClipboard::setText()), it remains in the clipboard only as long as the application is running. As soon as the application quits, the clipboard is cleared.

      This issue seems to be specific to Linux. Under Windows, the text remains in the clipboard after the application has quit.

      Attached is a minimal test program that demonstrates the issue:

      1) qmake && make

      2) start the test program, you'll see a message box. Don't close it!

      3) run an editor

      4) hit "Paste" - you'll see the text "Hello, World!" being inserted

      5) close the message box of the test program

      6) return to the editor

      7) hit "Paste" again - you'll see that nothing is inserted anymore

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            vog Volker Grabsch
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes