I'm updating a plugin for QGIS and struggling to see how to set the default file type when using the QgsProcessingParameterVectorDestination parameter. See code below.
self.addParameter(
QgsProcessingParameterVectorDestination(
"OUTPUT_POND_OUTLINES",
"Output Pond Outlines Vector",
optional=False,
)
)
Based on the docs i can not see how to pass *.shp as the default format like you do with a QgsProcessingParameterFileDestination
self.addParameter(
QgsProcessingParameterFileDestination(
"OUTPUT_POND_OUTLINES",
"Output Pond Outlines Vector",
optional=False,
fileFilter="ESRI Shapefile (*.shp)"
)
)
P.S. I prefer using QgsProcessingParameterVectorDestination as it handles the temporary output and adding to the current project by default. Where as QgsProcessingParameterFileDestination doesn't seem to have this capability.
