Doesnt QToolBar::allowedAreasChanged help you ??