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

DeprecationWarning: QgsField constructor is deprecated #47

Open
anitagraser opened this issue Nov 16, 2024 · 1 comment
Open

DeprecationWarning: QgsField constructor is deprecated #47

anitagraser opened this issue Nov 16, 2024 · 1 comment
Labels
enhancement Improvement to existing feature

Comments

@anitagraser
Copy link
Collaborator

warning:/home/anita/.local/share/QGIS/QGIS3/profiles/default/python/plugins/processing_trajectory/qgis_processing/trajectoriesAlgorithm.py:242: DeprecationWarning: QgsField constructor is deprecated
              fields.append(QgsField(f"length_{length_units}", QVariant.Double))
@anitagraser anitagraser added the enhancement Improvement to existing feature label Dec 14, 2024
@anitagraser
Copy link
Collaborator Author

See update to documentation in qgis/QGIS-Documentation@b8fd0fb

   pr.addAttributes([QgsField("Name", QMetaType.Type.QString),
                     QgsField("Employees",  QMetaType.Type.Int),
                     QgsField("Revenue", QMetaType.Type.Double),
                     QgsField("Rev. per employee", QMetaType.Type.Double),
                     QgsField("Sum", QMetaType.Type.Double),
                     QgsField("Fun", QMetaType.Type.Double)])

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to existing feature
Projects
None yet
Development

No branches or pull requests

1 participant