[Paraview] Initializing toolbars "unchecked" (branding)

Eric E. Monson emonson at cs.duke.edu
Tue Nov 10 16:11:02 EST 2009


Hey Utkarsh,

Thanks -- that did the trick!

I got fooled for a while, thinking it wasn't working, because before I  
made this change to hide the toolbars I had opened the application and  
the Settings File (.ini) was overriding the "hide" and making the  
toolbars visible... oops.

Talk to you later,
-Eric


On Nov 9, 2009, at 1:10 PM, Utkarsh Ayachit wrote:

> 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