[Qgis-user] open form with button

Stefan Giese Stefan.Giese at wheregroup.com
Mon Feb 8 23:11:28 PST 2021


Hi Raphael,

yes this is possible. But you will need to make your own custom form 
with qt Designer (delivered with QGIS) and some python code. A good 
starting point is the Blog from Nathan Woodrow, which is for QGIS 2.x 
but the principle is almost the same. In the Python scripts you should 
change the import statements to PyQt5 instead of PyQt4: 
https://woostuff.wordpress.com/2011/09/05/qgis-tips-custom-feature-forms-with-python-logic/

also you will find a brief description on qgis.org: 
https://docs.qgis.org/3.10/en/docs/training_manual/create_vector_data/forms.html#hard-fa-creating-a-new-form

Mit freundlichen Grüßen
Stefan Giese
Projektleiter/Consultant
---------------------------------------------
Einladung zum
Mapbender Anwendertreffen
online am 25.03.2021
https://mapbender.org
---------------------------------------------
WhereGroup GmbH
Schwimmbadstr. 2
79100 Freiburg
Germany

Fon: +49 (0)761 / 519 102 - 61
Fax: +49 (0)761 / 519 102 - 11

stefan.giese at wheregroup.com
www.wheregroup.com
Geschäftsführer:
Olaf Knopp, Peter Stamm
Amtsgericht Bonn, HRB 9885

Am 09.02.2021 um 08:01 schrieb Raphael d'Epagnier:
>
> Hello everyone
>
> I have already asked a similar question on this topic and received an 
> answer that was very helpful and sufficient for the previous project, 
> but I still need additional help.
>
> I have a point, line and area layer and an attribute table with 
> detailed information about the respective geometry objects. In the 
> attribute table, several objects of the different geometry types 
> (point, line, area) can belong to the same object.
>
> The aim is that when I select a point, for example, the information 
> from the attribute table is displayed (attribute table form opens 
> instead of the point table form). A view is not an option as the data 
> in the form needs to be editable. Is it possible to add a button or 
> double-click to retrieve the information from the attribute table 
> form? There is no problem if this opens a separate form or the 
> attribute table form. I have attached a picture to explain my problem.
>
> Thanks for the help
>
> Best regards,
>
> Raphael
>
> -- 
>
> Image
>
> 	
>
> *GeoplanTeam AG*
>
> Egliweg 6
>
> CH-2560 Nidau
>
> Image
>
> 	
>
> +41 (0) 32 332 78 00
>
> Image
>
> 	
>
> www.geoplanteam.ch<http://www.geoplanteam.ch/>
>
> Image
>
> 	
>
> raphael.depagnier at geoplanteam.ch<mailto:raphael.depagnier at geoplanteam.ch>
>
> Image
>
>
> _______________________________________________
> Qgis-user mailing list
> Qgis-user at lists.osgeo.org
> List info: https://lists.osgeo.org/mailman/listinfo/qgis-user
> Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/243ccfaa/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 387 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/243ccfaa/attachment.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 424 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/243ccfaa/attachment-0001.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.jpg
Type: image/jpeg
Size: 451 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/243ccfaa/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 450 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/243ccfaa/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 16355 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/243ccfaa/attachment-0004.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <http://lists.osgeo.org/pipermail/qgis-user/attachments/20210209/243ccfaa/attachment.sig>


More information about the Qgis-user mailing list