View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009291ParaViewBugpublic2009-07-21 15:072016-08-12 09:57
ReporterKen Moreland 
Assigned ToKitware Robot 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionmoved 
PlatformOSOS Version
Product Version 
Target VersionFixed in Version 
Summary0009291: Do not use QActionGroup to pass menu/toolbar actions from plugin
DescriptionThe 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.
TagsNo tags attached.
ProjectSandia
Topic Name
Typeincorrect functionality
Attached Files

 Relationships

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

 Issue History
Date Modified Username Field Change
2009-07-21 15:07 Ken Moreland New Issue
2011-01-28 14:04 Utkarsh Ayachit Target Version => 4.0
2013-01-08 21:32 Alan Scott Project => Sandia
2013-01-08 21:32 Alan Scott Type => incorrect functionality
2016-08-12 09:57 Kitware Robot Note Added: 0037666
2016-08-12 09:57 Kitware Robot Status backlog => closed
2016-08-12 09:57 Kitware Robot Resolution open => moved
2016-08-12 09:57 Kitware Robot Assigned To => Kitware Robot


Copyright © 2000 - 2018 MantisBT Team