Re: [Qgis-user] Using python on qgis Forms

2019-04-03 Thread Raymond Nijssen
Hi Kyle! The python code to get all the id's looks like this: ids = [] for feat in iface.activeLayer().getFeatures(): ids.append(feat.id()) print(ids) Now you need to connect your button to a function containing the above code, something like:

[Qgis-user] Using python on qgis Forms

2019-04-02 Thread Kyle Felipe Vieira Roberto
Hi! im from Brazil! I made a form, using QT4 (here we r using qgis 2.18 yet), on this form, i put a button that must take all "id" from selected features in a selected Layer. How to do it??? *Kyle Felipe* Vida longa e próspera! May the forçe be with you... #ThinkFree www.kylefelipe.com