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?

asked Aug 16, 2016 at 16:37

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.

answered Aug 16, 2016 at 16:51
3
  • Thanks! I will see into it (If I manage, I will make a pull request..) Commented 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. Commented Aug 17, 2016 at 6:59
  • Is gitter new? Haven't seen that website mentioned anywhere! Commented Aug 17, 2016 at 9:42

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.