I need an invalid layer to test a plugin in QGIS. In the plugin window, I select a layer from combobox. So, the invalid layer should be in the Layers
panel. I google for a while but I cannot find a way to generate an invalid vector layer.
How can I generate one so that layer.isValid()
returns False
?