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. Tab Order

Tab Order

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 2 Posters 5.8k 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
    scarleton
    wrote on last edited by
    #1

    I know that QML is originally designed for smartphones and tablets, but there are those of us that want to use it for desktop apps, too. So...

    Is there any way to support the concept of a tab order? Ideally I would love to see it built in, but early in the life of QML, I am willing to be flexible, if there is simply any way to do it:)

    Sam

    1 Reply Last reply
    0
    • F Offline
      F Offline
      fcrochik
      wrote on last edited by
      #2

      you can try something like this:

      @import Qt 4.7

      Rectangle {

      width: 200
      height: 200
      
      Rectangle {
          x: 10
          y: 10
          color: "red";
          width: 100
          height: search1.height
          TextInput {
              anchors.fill: parent;
              id:search1;
              KeyNavigation.tab: search2;
          }
      }
      
      
      Rectangle {
          x: 10
          y: 50
          color: "yellow";
          width: 100
          height: search2.height
          TextInput {
              anchors.fill: parent;
              id:search2;
              KeyNavigation.tab: search1;
          }
      }
      

      }@

      Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

      1 Reply Last reply
      0
      • F Offline
        F Offline
        fcrochik
        wrote on last edited by
        #3

        I found this wiki on the meego web site that may help you:

        "http://wiki.meego.com/QML/Keyboard_navigation":http://wiki.meego.com/QML/Keyboard_navigation

        Certified Specialist & Qt Ambassador <a href="http://www.crochik.com">Maemo, Meego, Symbian, Playbook, RaspberryPi, Desktop... Qt everywhere!</a>

        1 Reply Last reply
        0
        • S Offline
          S Offline
          scarleton
          wrote on last edited by
          #4

          Thank you, especially for the meego link that was very helpful!

          1 Reply Last reply
          0
          • S Offline
            S Offline
            scarleton
            wrote on last edited by
            #5

            Ok, now lets take this to the next level...

            I have created a control that contains a number of elements that can gain focus (an address control). How is focus controlled going from the container of the control to the control and then back out?

            Example:

            The current screen has:

            • a check box control: "Enable billing address separate from shipping address"
            • the 'address control' which starts with a TextInput control named fname and ends with a TextInput control named country.
            • a submit button

            The focus should start on the check box control, setting the KeyNavigation.tab to the address control will get them to the fname TextInput.

            How does the user get from the fname TextInput and backtab to the check box?

            How does the user get from the country TextInput to the submit button?

            How does the user get from the submit button and backtab to the country TextInput?

            Sam

            1 Reply Last reply
            0

            • Login

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