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

QKeyEvent: unbound keys and media keys do not return an empty string

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3: Somewhat important P3: Somewhat important
    • Some future release
    • 4.4.3
    • Core: Event loop
    • None

      When dealing with a QKeyEvent in a KeypressEvent with unbound keys (e.g. mediakeys not set up with xmodmap) are treated inconsistently. QKeyEvent::key() returns 0, but QKeyEvent::text().isEmpty() returns false. I would expect that QKeyEvent::text().isEmpty() returns true in this case.

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

            paeglis Gatis Paeglis
            janichol Andy Nichols
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes