Important: Please read the Qt Code of Conduct -

Shortcuts for Labels with TextFields

  • Hi,

    isn't it possible to set a shortcut within a label component to activate its TextField buddy?
    All I found was Action, but then again no way to assign it to the Label.

    Something like

      Action {
        id: nameAction
        text: qsTr("&Name:")
        shortcut: "Alt+N"
        onTriggered: nameEdit.focus = true
      Label {
        id: nameLabel
        action: nameAction
      TextField {
        id: nameEdit
        text: content.model.currentName

    Or what would you search for in the web?