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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • P1: Critical
    • None
    • 5.2.1, 5.3.0
    • Widgets: Main Window
    • 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
          Qt Support
        2. Modified-qtbug39807.zip
          1 kB
          Qt Support
        3. qtbug39807.zip
          1 kB
          Friedemann Kleint
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            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