Feature request #8454

QgsFields: Implement container methods

Added by Matthias Kuhn almost 4 years ago. Updated 3 months ago.

Status:Open
Priority:Normal
Assignee:-
Category:-
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 3 months ago

  • Easy fix? set to No

Also available in: Atom PDF