Please sign in to comment.
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use TRANSFER_BACK annotation instead of FACTORY for QgsProviderRegist…
…ry::createProvider Paraphrasing Phil Thomson's advice on https://www.riverbankcomputing.com/pipermail/pyqt/2017-July/039450.html: " /Factory/ is used when the instance returned is guaranteed to be new to Python. In this case it isn't because it has already been seen when being returned by by the python function creating the provider subclass. (However for a different sub-class implemented in C++ then it would be the first time it was seen by Python so the /Factory/ on create() would be correct.) You might try using /TransferBack/ on createProvider() instead - that might be the best compromise.
- Loading branch information
Showing with 20 additions and 2 deletions.