QTabs improvements

Use Name attribute in top level items to specify name of tab.
Makes sure on validation failure that the offending tab is showing.