[Paraview-developers] Hiding programmatically a Toolbar in a pvCustomApplication
Louka Jacques--Chevallier
louka.jacques--chevallier at pi.esisar.grenoble-inp.fr
Thu Mar 8 10:20:30 EST 2018
Hello again,
We're trying (yet failing) to hide a Toolbar programmatically in a pvCustomApplication.
The toolbar has been installed using : pqParaViewMenuBuilders::buildToolbars(*this);
What actually works :
-Accessing the toolbar, clearing its content
-Showing the toolbar
What doesn't work :
-Hiding the toolbar...
What has been tried :
-this->findChild<QToolBar *>("MainControlsToolbar")->hide();
-this->findChild<QToolBar *>("MainControlsToolbar")->toggleViewAction()->setChecked(false);
It seems that it's (quite) the right way, but we're definitely missing a part...
Any hint or idea to troubleshot ?
Have a great day ! ^.^
Luc, Sebastien & Louka
More information about the Paraview-developers
mailing list