Feature request #8454

QgsFields: Implement container methods

Added by Matthias Kuhn over 3 years ago.

Status:Open Start Date:08/11/2013
Priority:Normal Due date:
Assigned to:- % Done:

0%

Category:-
Target version:Future Release - High Priority
Platform: Resolution:
Platform version: Pull Request or Patch supplied:No
Status info: Tag:

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

Also available in: Atom