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

Android QClipboard.mimeData() returns NULL pointer for empty clipboard, should be QMimeData pointer

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.4.0 Beta
    • 5.3.1
    • QPA
    • None
    • Android armeabiv7a
      Qt5.3.1
      PyQt5.3.2
      Python3.4
    • Android
    • 9685c72e37d618cf44aa15c892375b3c8d27e578

    Description

      To replicate, deploy app to freshly booted device or AVD having an empty clipboard, where app calls QC.mimeData() on startup.

      The documentation seems to imply it should return a pointer to a QMimeData instance (an empty one.)

      The code in qandroidplatformclipboard.cpp contains 'return 0;'. This code seems inconsistent with iOS code. The behaviour probably is inconsistent with desktop and iOS.

      This earlier Russian post discovered this but didn't report it? http://www.linux.org.ru/forum/development/10018398

      Easy to work around.

      Attachments

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            bootchk lloyd konneker
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: