<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body>
I'd like to change the name of the output layer of my processing
script. The default name appears to be the value of the second arg
to QgsProcessingParameterFeatureSink. I could change this, but that
also changes the label on the input field on the processing dialog,
and "Output layer" seems pretty self-explanatory, unlike something
more descriptive of the algorithm but not clear it's the output.<br>
So I tried just setting the layer name - <br>
<blockquote> QgsProcessingUtils.mapLayerFromString(dest_id,
context).setName('DiffBUffer')<br>
</blockquote>
but that had no effect even though I called it as the last line
before the return.<br>
<br>
Is there a clean way to change the displayed name of the layer in
the legend from within the processing script?<br>
<br>
Thanks.<br>
<br>
</body>
</html>