tags:

views:

77

answers:

1

In Qt, when moving a QToolBar, one can use the QToolBar::topLevelChanged(bool) signal to know if the the QToolBar is floating or docked.

When the QToolBar is docked, how can one get the Qt::ToolBarArea (LeftToolBarArea, RightToolBarArea, TopToolBarArea, BottomToolBarArea) where the QTookBar is docked?

Thanks.

+2  A: 

Hey !

I would try this :

Qt::ToolBarArea QMainWindow::toolBarArea ( QToolBar * toolbar ) const;

Hope this helps !

Andy M