[QGIS-Developer] username and password as parameters to web page

Jose Mercedes Venegas Acevedo jvenegasperu at gmail.com
Mon Oct 24 06:58:53 PDT 2022


I am using QGIS to access a Postgres database.

Can someone tell me how I could pass that same username and password as a
parameter to a web page?

for example to directly open a page in qgis according to the manual for
example in this line

from qgis.PyQt.QtCore import QUrl; from qgis.PyQt.QtWebKitWidgets import
QWebView; myWV = QWebView(None); myWV.load(QUrl('
https://wikipedia.org/wiki/[%name%]')); myWV.show()

replace the content between square brackets with the user who accessed

-- 
José Mercedes Venegas Acevedo
cel 955725384
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/qgis-developer/attachments/20221024/35cbdd61/attachment.htm>


More information about the QGIS-Developer mailing list