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

            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