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

Create a FocusFrame control

    XMLWordPrintable

    Details

    • Platform/s:
      All
    • Technical Risk:
      Normal

      Description

      If the app creates a custom control, and wants it to have a focus frame that matches the  style, there is currently no API that lets him do that. 

      Like widgets, there should be a FocusFrame control in controls. This will enable an app to create a native looking focus frame that it can resize, move on top of, and inside, it's own custom controls. 

      We should consider letting the FocusFrame just be a thin proxy/API for the actual focus frame, since it might be implemented as a singleton (to reduce memory usage etc).

      Example:

      MyCusomControl {
         id: fluffy
         FocusFrame {
            visible: fluffy.hasActiveFocus
            aroundItem: fluffy // the target item can be a child etc
            offsetLeft: 0 // adjust position relative to fluffy.x
            ...
            radius: 5 // some custom control can be round
         }
      }

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              richard Richard Moe Gustavsen
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes