I created a toolbar in a plugin with:
toolbar = iface.addToolBar("new Toolbar")
I know I can toggle visibility of this toolbar with:
But for that I need direct access to the Variable toolbar
Now I want to write a new plugin which changes visibility of some toolbars.
From the new toolbar i cant access the variable toolbar.
So I tried to access the Toolbar with
iface.mainWindow().findChild(QToolBar, 'new Toolbar')
But it only returns None. I also don't have a Tooltip when I hover over the Toolbar. QGIS Standard Toolbars show a Tooltip on Hover...
It seems the Name of the toolbar isn't really saved.
How can I define a Name for a toolbar, so I can access it later from other scripts or is there a way to access it with 'new Toolbar'?
Also it would be nice to find identifiers for accessing toolbars of third party plugins I installed for QGIS.