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

Delays with QClipboard and "useEventLoop"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Out of scope
    • Affects Version/s: 4.8.5
    • Fix Version/s: None
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Environment:
      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

        1. l-qclipboard_delay.patch
          0.4 kB
          Luboš Luňák

          Issue Links

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

            Activity

              People

              • Assignee:
                paeglis Gatis Paeglis
                Reporter:
                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