qtui: Don't modify the ToolBarItems array.  Eliminate some casts.  Use QObject parents instead of manually deleting widgets.