MantisBT - ParaView
View Issue Details
0009291ParaViewBugpublic2009-07-21 15:072016-08-12 09:57
Ken Moreland 
Kitware Robot 
normalminorhave not tried
closedmoved 
 
 
Sandia
incorrect functionality
0009291: Do not use QActionGroup to pass menu/toolbar actions from plugin
The way you create custom menus and toolbars in plugins right now is that you subclass QActionGroup and add a set of actions to the group in the constructor.

The problem with this approach is that it can interfere with the toggling of the actions. Action groups are used to establish groups of actions that should behave as radio buttons or enabled and shown together.

Problem 1: If you set any of the actions to be checkable it will not immediately work as expected. Instead, it will check on but never check off. That is because it is part of an action group and Qt expects another action to be hit before turning it off. You can get around this by calling setExclusive(false) on the QActionGroup, but it still adds a lot of confusion to the user (it sure did for me and my colleagues).

Problem 2: If you actually want your actions in a group, you cannot do this because the plugin is forcing them all to be in a same group. There is no workaround for this except to put each group in a different toolbar, which may not be desirable.
No tags attached.
Issue History
2009-07-21 15:07Ken MorelandNew Issue
2011-01-28 14:04Utkarsh AyachitTarget Version => 4.0
2013-01-08 21:32Alan ScottProject => Sandia
2013-01-08 21:32Alan ScottType => incorrect functionality
2016-08-12 09:57Kitware RobotNote Added: 0037666
2016-08-12 09:57Kitware RobotStatusbacklog => closed
2016-08-12 09:57Kitware RobotResolutionopen => moved
2016-08-12 09:57Kitware RobotAssigned To => Kitware Robot

Notes
(0037666)
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.