[Qt-interest] FocusPolicy on designer plugin widgets

Tony Rietwyk tony.rietwyk at rightsoft.com.au
Mon Nov 15 09:44:46 CET 2010


Hi Everybody, 

I'm a bit confused as to how to set the focus policy for composite widgets exposed through a designer plugin.  The composite widgets return false to isContainer, since the contents are not to be edited in the designer.  

For example, the plugin has a group box that holds several checkboxes.  By default, the group box has NoFocus.  When I place the group box widget into a form, the group box and the checkboxes are excluded when setting the tab sequence in designer.  

If I change the group box focus policy, then I can include the group box in the tab sequence.  But this confuses the user at run-time, since the group box can now be tabbed to!  Furthermore, the checkboxes are still added to the end of the list - instead of being inserted after the group box.  

Hopefully I've overlooked some setting, or someone can suggest an easy way of reorganising the tab sequence at run-time.  

Tony.





More information about the Qt-interest-old mailing list