We are developing a QGIS plugin and would like to override the QGIS Feature Edit Form with our own Dialog.
Have explored using setEditForm and setEditFormInit, but the init process appears to want to use a python file located in the user's project directory.
Ideally we'd use an init method from our Plugin's code and gain access to our Plugin's instance.
Had thought that the new EditWidget V2 might be able to help, but this seems to be focussed on editing individual attributes rather than a feature.
Doh. Managed to resolve it.
In the init method of your plugin:
Firstly add the plugin directory to the system path list (or a subdirectory of it) Secondly, initialise a static variable with the Plugin's instance (self)
Am yet to add logic to the dialog but looks like we're on the home run. Thanks Python!