Feature request #8454

QgsFields: Implement container methods

Added by Matthias Kuhn about 11 years ago. Updated about 7 years ago.

Status:Open
Priority:Normal
Assignee:-
Category:Unknown
Pull Request or Patch supplied:No Resolution:
Easy fix?:No Copied to github as #:17223

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 over 7 years ago

  • Easy fix? set to No

#2 Updated by Jürgen Fischer about 7 years ago

  • Category set to Unknown

Also available in: Atom PDF