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

Cannot instantiate QgsFeatureFilterModel using PyQGIS #42488

Closed
DavidPavlicek opened this issue Mar 25, 2021 · 0 comments · Fixed by #43494
Closed

Cannot instantiate QgsFeatureFilterModel using PyQGIS #42488

DavidPavlicek opened this issue Mar 25, 2021 · 0 comments · Fixed by #43494
Assignees
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!

Comments

@DavidPavlicek
Copy link

When I try to create new instance of QgsFeatureFilterModel using Python (plugin or in console) i get this:

>>>model = QgsFeatureFilterModel()
Traceback (most recent call last):
  File "C:\PROGRA~1\QGIS3~1.18\apps\Python37\lib\code.py", line 90, in runcode
    exec(code, self.locals)
  File "<input>", line 1, in <module>
TypeError: qgis._core.QgsFeatureFilterModel represents a C++ abstract class and cannot be instantiated

It works flawlessly in QGIS 3.12. Starts to complain after upgrade to 3.14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Either a bug report, or a bug fix. Let's hope for the latter!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants