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

Delays with QClipboard and "useEventLoop"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • Not Evaluated
    • None
    • 4.8.5
    • GUI: Drag and Drop
    • None
    • openSUSE 13.1, kdelibs 4.11.5, LO master (4.2+)

    Description

      If LibreOffice is running with KDE integration and KFileDialog is open, if clipboard contents are held by LO (i.e. Ctrl+C in LO before the dialog is opened), then there is a visible delay when moving the mouse over the dialog contents. This is because KFileDialog repeatedly checks clipboard contents and these checks take visibly long (and there's not so few of them).

      LO/Qt integration needs to set QClipboard to "useEventLoop" mode. The code there adds 50ms delay to every single clipboard data fetch, presumably to avoid busy-looping, but it's quite long and often needless.

      The attached patch avoids any visible delay in the KFileDialog in this case.

      Attachments

        Issue Links

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

          Activity

            People

              paeglis Gatis Paeglis
              llunak Luboš Luňák
              Votes:
              3 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes