Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. SetTabOrder problem
QtWS25 Last Chance

SetTabOrder problem

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 3.4k Views
  • 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 Offline
    F Offline
    fluca1978
    wrote on last edited by
    #1

    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
    0
    • EddyE Offline
      EddyE Offline
      Eddy
      wrote on last edited by
      #2

      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
      0

      • Login

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