Feature request #8454

QgsFields: Implement container methods

Added by Matthias Kuhn about 4 years ago. Updated 27 days ago.

Status:Open
Priority:Normal
Assignee:-
Category:Unknown
Pull Request or Patch supplied:No Resolution:
Easy fix?:No

Description

Concerns C++ and Python.

C++: Implement the iterator and const_iterator things, so we can do e.g.:

Q_FOREACH( QgsField f, fields )

Python:
Should this be a dict or a list? Either

for fieldname, field in fields.iteritems():

or

for field in fields:

should be possible

History

#1 Updated by Giovanni Manghi 6 months ago

  • Easy fix? set to No

#2 Updated by Jürgen Fischer 27 days ago

  • Category set to Unknown

Also available in: Atom PDF