Results 1 to 3 of 3

Thread: Tab order ignored in QGroupBox

  1. #1

    Default Tab order ignored in QGroupBox

    Greeting all,
    I've designed a form in QT Designer 4.2.2 and have a QGroupBox with four radio buttons (autoExclusive = true) in it. Using Designer, I've specified the tab order of the buttons to be sequential. Yet when I tab through the objects in the form, I tab approapriately to the first radiobutton in the GroupBox, but then upon tabbing again, the focus goes to the next indexed item OUTSIDE the GroupBox. That is, by skipping over the next three radio buttons the tabbing order of the buttons has been ignored . If I instead select a different button (e.g. checked = True) , the tabbing will focus on that button, but additional tabbing will skip all the other buttons.

    It seems that this is likely due to the buttons being autoExclusive. Is there a way to ensure the correct tabbing order other than changing the buttons to have autoExclusive = false and scripting the autoexclusiveness property myself?

    Thanks in advance for your help.

    Andrew

  2. #2
    Join Date
    Jan 2006
    Location
    Alingsås, Sweden
    Posts
    437
    Thanks
    3
    Thanked 39 Times in 39 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Tab order ignored in QGroupBox

    What you describe is the standard behaviour. You can pick the radiobutton to be active using the arrow keys and then leave the group using tab.

    If you want to try your theory you could just change the property in Designer and preview the dialog there. Handling the exclusivity is just about having a slot that makes sure that when one is set to true the rest are made false. It should not be too hard to implement.

  3. #3
    Join Date
    Feb 2010
    Posts
    20
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Symbian S60

    Default Re: implemanting autoexclusivity through code for radio buttons

    hi e8johan & all,

    I am a new bee in Qt and GUI programming. I know its easy to implement to auto exclusivity but i m not being able to do that.
    Is there any signal that need to be handled or event to be processed? When will the slot will be called to implement this feature?

    I have implemented the feature using click () signal for each radio button and connecting a slot for each radio button.
    It worked for mouse click, not not for pressing tab or arrow. I want the tab to navigate each button. and while navigating make it checked and other unchecked. This is the reason i m not making them auto exclusive in designer.

    It will be a great help if u show me the way to implement this tab order on radio buttons.

    Lots of thanks!!!!

Similar Threads

  1. Adding QGroupBox to QTabWidget
    By mclark in forum Newbie
    Replies: 2
    Last Post: 17th January 2007, 16:27
  2. QGroupBox Issues
    By ToddAtWSU in forum Qt Programming
    Replies: 8
    Last Post: 16th January 2007, 13:45
  3. QGroupBox title truncated on both sides
    By Gopala Krishna in forum Qt Programming
    Replies: 2
    Last Post: 7th October 2006, 15:02
  4. Tab Order Settings in a QDialog widgets
    By vinnu in forum Qt Programming
    Replies: 10
    Last Post: 21st September 2006, 16:25
  5. Replies: 1
    Last Post: 26th February 2006, 05:52

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.