Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Update: Forum Guidelines & Code of Conduct

    SetTabOrder problem

    General and Desktop
    2
    2
    3227
    Loading More Posts
    • 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.
    • F
      fluca1978 last edited by

      Hi all,
      in a dialog window I've got something like the following at the end of the constructor:

      @
      setTabOrder( combo_a, edit_b );
      setTabOrder( edit_b, edit_c );
      setTabOrder( edit_c, edit_d );
      setTabOrder( edit_d, edit_e );
      @

      but if I try to tab from edit_b I got that the label before the edit_c is selected, then edit_c and then again edit_b (instead of the other edits). Am I doing something wrong?

      1 Reply Last reply Reply Quote 0
      • E
        Eddy last edited by

        you mention a label. Could be the edit has this label as a proxy.

        from the docs :

        bq. If first or second has a focus proxy, setTabOrder() correctly substitutes the proxy.

        also have a look at "setFocusProxy":http://doc.qt.nokia.com/4.7/qwidget.html#setFocusProxy

        Qt Certified Specialist
        www.edalsolutions.be

        1 Reply Last reply Reply Quote 0
        • First post
          Last post