Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't access to QAction class new methods #19734

Closed
qgib opened this issue Oct 21, 2014 · 1 comment
Closed

can't access to QAction class new methods #19734

qgib opened this issue Oct 21, 2014 · 1 comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Milestone

Comments

@qgib
Copy link
Contributor

qgib commented Oct 21, 2014

Author Name: enrico ferreguti (@enricofer)
Original Redmine Issue: 11458
Affected QGIS version: master
Redmine category:python_plugins


Qgis api 2.5 documentation reports for class QAction these new methods:
iconPath()
icon()

but these methods in 2.5.0-Master. are not visible from python:

If you run this command line from console on a current layer having actions:
dir(iface.mapCanvas().currentLayer().actions().listActions()[0])
you get:
['ActionType', 'Generic', 'GenericPython', 'Mac', 'OpenUrl', 'Unix', 'Windows', 'class', 'delattr', 'dict', 'doc', 'format', 'getattribute', 'hash', 'init', 'module', 'new', 'reduce', 'reduce_ex', 'repr', 'setattr', 'sizeof', 'str', 'subclasshook', 'weakref', 'action', 'capture', 'name', 'runable', 'type']
in where you can't find icon() and iconPath()

@qgib
Copy link
Contributor Author

qgib commented Oct 21, 2014

Author Name: Matthias Kuhn (@m-kuhn)


Fixed in changeset "338e138be6db9dc81b8fc34a7352abd5c9cad7c0".


  • status_id was changed from Open to Closed

@qgib qgib added Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins labels May 25, 2019
@qgib qgib added this to the 2.5 milestone May 25, 2019
@qgib qgib closed this as completed May 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter! Plugins
Projects
None yet
Development

No branches or pull requests

1 participant