Re: [QGIS-Developer] Recommended method to display a webpage in a plugin
On Wed, 16 Feb 2022 at 06:46, Jean-Baptiste Peter wrote: > > Hello, > > I am trying to figure what is the right way to display a webpage within a > QGIS plugin and I have a few questions : > > Is it currently possible to use QWebEngineView class with QGIS python > console? When I try to import it in QGIS python console, I get the following > error : > > > > ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets' > > > > > > 2. If it is not currently possible to use QWebEngineView, does it involve > major work or is there a chance it will be supported in the near future? It's a very messy, horrible situation with no good ways forward. Right now you'll need to use QtWebKit, and there's no plans on the horizon to change this. Nyall ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Recommended method to display a webpage in a plugin
Hello, I am trying to figure what is the right way to display a webpage within a QGIS plugin and I have a few questions : 1. Is it currently possible to use QWebEngineView class with QGIS python console? When I try to import it in QGIS python console, I get the following error : ModuleNotFoundError: No module named 'PyQt5.QtWebEngineWidgets' 2. If it is not currently possible to use QWebEngineView, does it involve major work or is there a chance it will be supported in the near future? 3. Until when can we expect QTWebKit to work in QGIS? Is it still advisable to start a project making extensive use of this module ? Thank you for your help! Best regards, Jean-Baptiste ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] 2022 grant applications are now closed
Dear QGIS Community, This is to let you know that the form for grant applications is now closed and that we have received a total of six applications, four of which fulfill the call requirements. These four applications total € 25,300. As a quick teaser, here are the proposals: 1. Add SQL Logging to the debugging/development panel (https://github.com/qgis/QGIS-Enhancement-Proposals/issues/242) 2. QGIS setting registry enhancement (https://github.com/qgis/QGIS-Enhancement-Proposals/issues/245) 3. Fix handling of provider default value clauses/Autogenerate/nextval(...) handling (https://github.com/qgis/QGIS-Enhancement-Proposals/issues/247) 4. Support building QGIS application on Qt 6 (https://github.com/qgis/QGIS-Enhancement-Proposals/issues/243) We are now in the QEP discussion phase. The QEP discussion phase ends on Sunday, 2022-02-27. Since the total requested budget is equal to the available budget, there is no need for a voting this year. Assuming that no serious issues are raised in the QEP discussion phase, all four projects will be funded. Thank you to everyone who submitted project proposals! Regards, Anita ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Re: [QGIS-Developer] Can't open postgrest geojson service
Further testing, I discovered that I can open my postgrest geojson service using Python : |myLayer= QgsVectorLayer('http://mydomain:3000/rpc/wod_geojson, 'myLayer', 'ogr') QgsProject.instance().addMapLayers([myLayer]) | Also, testing with ogrinfo on command line, it fails with 404 error , but adding |Accept: application/json| header makes it work. (using --config GDAL_HTTP_HEADER_FILE) -- Christophe Damour Le 11/02/2022 à 14:27, SIGéal a écrit : Hi, I have a PostgreSql stored procedure which returns a geojson feature collection created with json_build_object function. This web service opens fine in OpenLayers, however, when I try to open it in QGIS, with data source manager -> vector -> protocol -> geojson : I get the following error : Invalid data source: [myurl]/rpc/wod_geojson is not a valid or recognized data source. This is the query wrapped in a plpgsql function called my_geojson : |SELECT json_build_object( 'type', 'FeatureCollection', 'features', json_agg( json_build_object( 'type', 'Feature', 'id', id, 'geometry', ST_AsGeoJSON(ST_Transform(geometry, 4326))::json, 'properties', json_build_object( 'lib', lib ) ) ) )::json my_geojson FROM (SELECT ROW_NUMBER() OVER() id, * FROM mytable) tmp| This is the url I use to call the service: |http://mydomain:3000/rpc/my_geojson| I tested a similar geojson REST service served with pg_featureserv, and it works fine... Environment : Server Environment : PostgreSQL version: 10.19 PostgREST version: 9.0.0 Operating system: Ubuntu 16.04 Client Environment : QGIS version: 3.16.16 Operating system: Windows 10 Thanks for any int -- Christophe Damour ___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer
[QGIS-Developer] Packages for arm64 version of ubuntu
Is it possible to have the arm64 architecture supported for ubuntu ? Regards Patrice Vetsel___ QGIS-Developer mailing list QGIS-Developer@lists.osgeo.org List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer