[QGIS-Developer] QgsProcessingParameterMatrix - numberRows is not respected in the UI

René-Luc Dhont rldhont at gmail.com
Mon Mar 4 03:20:47 PST 2019


Hi Nyall,

Thanks for the answer.

To work around the issue, I have to provide a default value.

In the case of a QgsProcessingParameterMatrix with fixed rows number has 
a default value have to be provided by the definition or the class ?

René-Luc

Le 02/03/2019 à 00:38, Nyall Dawson a écrit :
> On Sat, 2 Mar 2019 at 00:11, René-Luc Dhont <rldhont at gmail.com> wrote:
>> Hi Devs,
>>
>> I'd like to use QgsProcessingParameterMatrix with fixed rows number,
>> like it's defined in SAGA User defined filter algorithm.
>>
>> And like in SAGA User defined filter algorithm, the table displayed has
>> no rows.
>>
>> Which part of the QGIS code has to build the displayed table ?
> https://github.com/qgis/QGIS/blob/master/src/gui/processing/qgsprocessingmatrixparameterdialog.cpp#L111
>
> with unit tests here:
> https://github.com/qgis/QGIS/blob/master/tests/src/gui/testprocessinggui.cpp#L1760
>
> Let me know if you have any questions about this code -- it's only
> new, so is fresh on my mind.
>
> Nyall
>
>> Thanks,
>> René-Luc
>> _______________________________________________
>> QGIS-Developer mailing list
>> QGIS-Developer at lists.osgeo.org
>> List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
>> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer



More information about the QGIS-Developer mailing list