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

QClipboard hasText() true when there is no text

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • None
    • 5.4.1
    • QPA
    • None
    • Android

    Description

      Qt 5.4.1
      Android 4.3 (also 4.4)

      QMimeData return true for hasText() but retrieved text via text() is empty.

          const QMimeData *mime = QApplication::clipboard()->mimeData();
      
          if (mime->hasText())
          {
             QString textStr = mime->text();
              if (textStr.isEmpty())
              {
                  qDebug() << "empty text";
              }
          }
      

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            lugru Łukasz Grużewski
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes