[Paraview] Initializing toolbars "unchecked" (branding)

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Mon Nov 9 13:10:07 EST 2009


You simply instantiate the toolbar in your QMainWindow subclass (or
using a UI file) and then do the usual steps one follows to add a
toolbar in Qt e.g.

QToolBar* timeToolbar = new QToolBar(mainWindow);
 ...
 mainWindow->addToolBar(Qt::TopToolBarArea, timeToolbar);
 timeToolbar->hide();


It will automatically be updated in the View Menu, nothing special to do there.

Utkarsh

On Mon, Nov 9, 2009 at 11:11 AM, Eric E. Monson <emonson at cs.duke.edu> wrote:
> Hey,
>
> (Note: I'm looking at this in the context of PV branding, but I'm not sure
> whether the implementation details depend on that or not.)
>
> When an app is initialized, how would you build a toolbar and its view menu
> item, but have the visibility in the view menu start as "unchecked", so it
> exists, but isn't shown unless the user wants to see it?
>
> Thanks,
> -Eric
>
> ------------------------------------------------------
> Eric E Monson
> Duke Visualization Technology Group
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>


More information about the ParaView mailing list