Adding widget above or below the toolbar

I am running a custom python script with slicer main window. And I want to add a widget or layout between above or below the toolbar.

A QMainWindow does not support widgets above the top toolbar area.

image

1 Like

If you want to place anything above toolbars then they have to be toolbars, too. You can have any number of toolbar rows, put any number of toolbars in them, put any widgets in any of the toolbars, and you can move the toolbars between toolbar rows any way you want. This is all standard Qt API, so look for details in the Qt documentation, Stack Overflow, etc.