MantisBT - ParaView
View Issue Details
0006836ParaView(No Category)public2008-04-17 06:502016-08-12 09:57
Filip Sadlo 
Robert Maynard 
lowfeatureN/A
closedmoved 
 
 
0006836: Disabling widgets
There seems to be no correct way to disable (gray out) widgets that are not considered in certain states of a module.

I actually use the pqAutoGeneratedObjectPanel class and use findChild() for finding the corresponding QWidget by its name. Then I use setEnabled() for enabling/disabling.

The problem is that the label of the widget should be disabled too. I construct the name of the label (from Qt/Components/pqNamedWidgets.cxx:createPanelLabel(): ParaView3.2: %s_label, ParaView3.3:_labelFor%s) und use that name for finding the QWidget of the label, certainly a hack.

One solution could be to offer the programmer the possibility to retrieve the QWidget of the widget together with the QWidget of the label, e.g. by the name of the widget as defined in the XML file.
No tags attached.
Issue History
2008-04-17 06:50Filip SadloNew Issue
2008-04-17 09:43Ken MorelandCategory3.4 => 3.6
2009-02-17 15:49Ken MorelandCategory3.6 => Pending
2009-02-20 10:52Ken MorelandCategoryPending => 3.8
2009-05-13 13:40Utkarsh AyachitTarget Version => 3.8
2010-11-19 13:32Utkarsh AyachitNote Added: 0023439
2010-11-19 13:32Utkarsh AyachitAssigned To => Robert Maynard
2010-11-19 13:32Utkarsh AyachitStatusbacklog => tabled
2010-11-19 13:32Utkarsh AyachitPrioritynormal => low
2011-06-16 13:10Zack GalbreathCategory => (No Category)
2016-08-12 09:57Kitware RobotNote Added: 0037567
2016-08-12 09:57Kitware RobotStatusexpired => closed
2016-08-12 09:57Kitware RobotResolutionopen => moved

Notes
(0023439)
Utkarsh Ayachit   
2010-11-19 13:32   
We will simply connect the enabled/disabled signals from the widget to label.
(0037567)
Kitware Robot   
2016-08-12 09:57   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current ParaView Issues page linked in the banner at the top of this page.