Is it possible to set the layer properties Python Init function field programmatically?

I've been looking through the qgis 2.2 api but can't seem to find anything on it.

1 Answer 1


I think you're after QgsVectorLayer::setEditFormInit and QgsVectorLayer::editFormInit. Both of these functions are available in the python bindings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.