<div dir="ltr"><div><div><div><div><div><div><div>Hi,<br><br></div><div>I'm working with the Python API to create a standalone app.<br></div>When I reuse this sample from <a href="http://kartoza.com/how-to-load-a-qgis-project-in-python/" target="_blank">http://kartoza.com/how-to-load-a-qgis-project-in-python/</a>, it works perfectly with only vector layer(s).<br></div>When I use a WMS with a vector layer, it fails directly.<br></div>I've done two samples to demonstrate the issue. You can take samples from <a href="https://framadrop.org/r/kkC2MVV9TH#anlncOhrg5vbo5W7D8Lfjg8ghRq7BTo9flJXvnIV+Io=" target="_blank">https://framadrop.org/r/kkC2MVV9TH#anlncOhrg5vbo5W7D8Lfjg8ghRq7BTo9flJXvnIV+Io=</a> <br><br></div>Run the working vector sample with:<br></div>    python test_project_standalone_no_wms.py<br><br>Run the non working wms + vector sample with:<br>    python test_project_standalone.py<br><br></div>I should miss something. Do you have any clue? It's a bug or a feature (unwanted for my case)?<br><br></div>Cheers<br><br>Thomas Gratier<br></div>