<div dir="ltr">Hello,<div><br></div><div>I am trying to link up QGIS with our application by posting a feature geometry in WKT to our local application api. </div><div>I have started by creating actions and using QWebview to call our API,</div><div><br></div><div>Our API needs to login.</div><div><br></div><div>so below is action script when used will just call the api </div><div><br></div><div><p style="margin:0px">from PyQt4.QtCore import QUrl;</p>
<p style="margin:0px">from PyQt4.QtWebKit import QWebView;</p>
<p style="margin:0px">myWV = QWebView(None);</p>
<p style="margin:0px">myWV.load(QUrl('<a href="http://localhosot/app/asset/new')">http://localhosot/app/asset/new')</a>); </p>
<p style="margin:0px">myWV.show();</p><p style="margin:0px"><br></p><p style="margin:0px">now since our api needs login - as soon as it realizes it is the firstime user trying</p><p style="margin:0px">to go the application url. it redirects you to login.</p><p style="margin:0px"><br></p><p style="margin:0px">once i logged in - normally in a browser like chrome it remembers you so next time you point to the API you don;t need to login anymore.</p><p style="margin:0px"><br></p><p style="margin:0px">But with QGIS in QWebview everytime triggering the action it doesn;t seem to remember and always goes back to login,</p><p style="margin:0px"><br></p><p style="margin:0px">how can i make a global webview. so that it is only created once and remember the session user is in. so it would only have to login once.</p><p style="margin:0px"><br></p><p style="margin:0px">or do i have to do something other than using actions to accomplish this.</p><p style="margin:0px"><br></p><p style="margin:0px">Regards</p><p style="margin:0px"><br></p><p style="margin:0px">Murad <br></p></div></div>