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

QClipboard hasText() true when there is no text

XMLWordPrintable

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

      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";
              }
          }
      

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes