Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-84909 Use bindable QProperty in Qt QML classes
  3. QTBUG-85282

Investigate QQuickItem::setParentItem <-> focus relationship

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Unresolved
    • P2: Important
    • None
    • None
    • None

    Description

      setParentItem calls QQuickWindowPrivate::updateFocusItem, which calls parentItem on various items in turn. Moreover, it is possible to trigger a setParentItem call in response to a focus change, complicating things even further.

       

      This leaves no easy way to implement the parent property as a QProperty, as there are two "phases": A first phase where parentItem needs to return the old parent, and a second one where the new item has to be returned. While in theory it would be possible to model this with the guard and callback functions, the two phases share some state which currently cannot be passed from guard to callback (at least not without adding a new member).

      Attachments

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

        Activity

          People

            fabiankosmale Fabian Kosmale
            fabiankosmale Fabian Kosmale
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes