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

Loader is a FocusScope, but doesn't have focus by default

    XMLWordPrintable

Details

    • d27e7484c8fcb08e0c533b9a8bf5af8d527b1de3

    Description

      Loader is a FocusScope, but doesn't have focus by default ( item->setFocus(true); is commented out in QDeclarativeLoaderPrivate::_q_sourceLoaded ). As the developer is unaware of this fact, it leads to unexpected behavior as child items of Loaders don't get the focus when they are told to.

      This constrasts with ListView, for example, which also is a FocusScope, but has focus by default.

      So it seems appropriate to either:

      • Uncomment the line and let Loader have focus by default
      • Document the fact that it is a FocusScope but doesn't have focus by default

      By the way, I think that the fact that an item is a FocusScope is something that should be mentionned in the doc, anyways. There is actually a mention about ListView in the focus doc, but it would be nice to have it written somewhere in the "Detailed Description" section of ListView and Loader doc.

      Attachments

        Issue Links

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

          Activity

            People

              bodson Yann Bodson (Inactive)
              gregschlom Gregory Schlomoff
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes