<div dir="ltr"><div><div><div>Thank you  Nyall, I understand.<br></div>The reason I needed to resize the window was to better fit some image content in my HTML help.<br></div><br>Taking the opportunity, I'm a C++ and Python developer and I would love to contribute on the project. Is there any need for help in the Processing Framework (since I'm already a bit familiar with it) or in others areas? I would probably need some guidance at first but I've been using QGIS and developing plugins for some time now, so I guess it wouldn't be too big a learning curve.<br><br></div><div>André<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2018-04-03 0:29 GMT-03:00 Nyall Dawson <span dir="ltr"><<a href="mailto:nyall.dawson@gmail.com" target="_blank">nyall.dawson@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 31 March 2018 at 14:06, André William <<a href="mailto:wss.andre@gmail.com">wss.andre@gmail.com</a>> wrote:<br>
> After some digging, I found that while the textShortHelp object is not<br>
> directly available in the AlgorithmDialog class anymore, i was able to<br>
> access it like this:<br>
>><br>
>> shortHelpObj = dlg.findChild(QTextBrowser, 'textShortHelp')<br>
><br>
> Is this the expected behavior?<br>
<br>
</span>None of this is in stable API, so can change between QGIS versions<br>
(including within minor versions/patch releases).<br>
<br>
Stable API for processing is:<br>
- the classes within the core library (unless they are explicitly<br>
marked as non-stable, e.g.  the modeler related classes)<br>
- the base GUI "WidgetWrapper" class (NOT any of its subclasses)<br>
- some methods from the processing namespace:<br>
    - processing.algorithmHelp()<br>
    - processing.run()<br>
    - processing.runAndLoadResults()<br>
    - processing.<wbr>createAlgorithmDialog()<br>
    - processing.<wbr>execAlgorithmDialog()<br>
<br>
So, in short, unfortunately this approach is always going to be<br>
fragile. Better wrap it in a big try block! ;)<br>
<br>
I gather you're trying to force the "help" panel to resize when the<br>
dialog is opened. Is there a particular reason why you need to do<br>
this?<br>
<br>
Nyall<br>
<div><div class="h5"><br>
<br>
><br>
> André W.<br>
><br>
> 2018-03-30 18:54 GMT-03:00 André William <<a href="mailto:wss.andre@gmail.com">wss.andre@gmail.com</a>>:<br>
>><br>
>> Hi all,<br>
>><br>
>> I'm porting an existing Geoprocessing Algorithm plugin to QGIS 3 and I'm<br>
>> having some trouble customizing the default dialog.<br>
>> On QGIS 2.x the following code worked:<br>
>><br>
>>> class TestAlgorithm(GeoAlgorithm):<br>
>>>     INPUT = 'INPUT'<br>
>>>     OUTPUT = 'OUTPUT'<br>
>>><br>
>>><br>
>>><br>
>>>     def getCustomParametersDialog(<wbr>self):<br>
>>>         customDialog = AlgorithmDialog(self)<br>
>>>         customDialog.textShortHelp.<wbr>setFixedWidth(450)<br>
>>>         return customDialog<br>
>><br>
>><br>
>> On QGIS 3 however, the getCustomParametersDialog() method is gone. I<br>
>> assumed it was replaced by the new createCustomParametersWidget()<wbr>, but<br>
>> unfortunately this method doesn't seem to get called by the parent class:<br>
>><br>
>>>     def createCustomParametersWidget(<wbr>self, parent):<br>
>>>         customDialog = AlgorithmDialog(self)<br>
>>>         customDialog.textShortHelp.<wbr>setFixedWidth(450)<br>
>>>         return customDialog<br>
>><br>
>><br>
>> I also tried manually creating the dialog, but I get a message saying that<br>
>> the 'AlgorithmDialog' object has no attribute 'textShortHelp'.<br>
>><br>
>>> alg =<br>
>>> QgsApplication.<wbr>processingRegistry().<wbr>algorithmById('test:<wbr>testAlgorithm')<br>
>>> dlg = AlgorithmDialog(alg)<br>
>>> dlg.textShortHelp.<wbr>setFixedWidth(450)<br>
>>> dlg.show()<br>
>><br>
>><br>
>> Any thoughts?<br>
>><br>
>> Thanks in advance!<br>
>> André<br>
><br>
><br>
><br>
</div></div>> ______________________________<wbr>_________________<br>
> QGIS-Developer mailing list<br>
> <a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br>
> List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
> Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">https://lists.osgeo.org/<wbr>mailman/listinfo/qgis-<wbr>developer</a><br>
</blockquote></div><br></div>