Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Shortcuts for Labels with TextFields
Forum Updated to NodeBB v4.3 + New Features

Shortcuts for Labels with TextFields

Scheduled Pinned Locked Moved QML and Qt Quick
qmlshortcutshotkeyactionbuddyquick
1 Posts 1 Posters 880 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    slesa
    wrote on 12 Oct 2015, 12:35 last edited by
    #1

    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?

    1 Reply Last reply
    0

    1/1

    12 Oct 2015, 12:35

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved