3

Is it possible to add combo-boxes, option groups and similar items to QGIS processing scripts? The documentation mentions text-boxes ('string', 'number'), file browser etc. I would like to add a combo-box with a list of values - should I make my own Qt from?

1 Answer 1

2

If you want to do it the open source way, extend processing with a new parameter type ParameterEnumeration.

The ParameterGeometryPredicate should serve as a good sample. There's also a gui widget defined for it.

For development you can just copy the processing plugin into your plugins folder and modify it in a safe environment there. Once finished, please make a pull request so every other processing plugin out there can use this important parameter type as well.

3
  • Thanks! I will see into it (If I manage, I will make a pull request..)
    – Zoran
    Aug 16, 2016 at 21:11
  • If you need help with this, don't hesitate to contact via mailing list or gitter. The QGIS community is very open. Aug 17, 2016 at 6:59
  • Is gitter new? Haven't seen that website mentioned anywhere!
    – Joseph
    Aug 17, 2016 at 9:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.