Hi, should be something like this one: #opens an URL with a QWebview from PyQt5 import QtCore from PyQt5.QtCore import * from PyQt5.QtWebKit import * from PyQt5.QtWebKitWidgets import * web = QWebView() web.load(QUrl('http://wikipedia.org/wiki/[%name%]')) web.show()
--- Mit freundlichen Grüßen Stefan Giese Projektleiter/Consultant *************************** Where2B Konferenz 2019 12. Dezember 2019 in Bonn where2b-conference.com *************************** WhereGroup GmbH Schwimmbadstr. 2 79100 Freiburg Germany Fon: +49 (0)761 / 519 102 - 61 Fax: +49 (0)761 / 519 102 - 11 stefan.gi...@wheregroup.com www.wheregroup.com Geschäftsführer: Olaf Knopp, Peter Stamm Amtsgericht Bonn, HRB 9885 Am 2019-10-23 19:28, schrieb Jose Mercedes Venegas Acevedo:
Hello everyone in the QGIS manual until 2.18 you could create an action that directly opens a page in qgis with this code from PyQt4.QtCore import QUrl; from PyQt4.QtWebKit import QWebView; myWV = QWebView (None); myWV.load (QUrl ('http://wikipedia.org/wiki/ [% "name"%]')); myWV.show () I took that from this manual https://docs.qgis.org/2.8/es/docs/training_manual/create_vector_data/actions.html does anyone know how to write this code within the actions of qgis but for version 3 I currently use qgis 3.8 Thank you -- José Mercedes Venegas Acevedo cel Mov RPC 964185205 _______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user
_______________________________________________ Qgis-user mailing list Qgis-user@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-user Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-user