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

[Reg 4 - 5 ] QWidget::hasFocus() returns false

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Invalid
    • Affects Version/s: 5.2.1, 5.3.0
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
    • Environment:
      Windows 7

      Description

      hasFocus() returns false if a widget is activated and raised programmatically.

      QApplication::focusWidget() returns null.

      Attached example reproduces this, run the example and wait for five seconds.

        Attachments

        1. FocusTest (2).zip
          8 kB
        2. Modified-qtbug39807.zip
          1 kB
        3. qtbug39807.zip
          1 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            qtcomsupport Qt Support
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes