<div dir="ltr"><div><div>Hi all<br><br></div>Is it possible to replace one of QGIS' dialogues with a custom one during runtime by using Python?<br></div><div><br></div><div>My concrete goal is to replace the dialogue that shows when clicking the 'Add WMS/WMTS Layer' with something custom. I'd like to enhance the native QGIS dialogue with additional elements for selecting additional dimensions, like time or elevation.</div><div><br></div><div>Can this be done?</div><div><br></div><div>I'm thinking that I'd only have to replace whatever slot is currently defined on the `iface.actionAddWmsLayer()` action with a custom function that would load my UI instead. The problem is that I can't seem to find where a signal's connected slots are stored with Qt.</div><div><br></div><div>Ideally there would be some introspection mechanism by which I'd be able to retrieve which slots are associated with the action's `triggered` signal - I can't seem to find it though. After knowing which slot(s) were connected to the action's signal, I would presumably be able to `disconnect()` them and then connect my own.</div><div><br></div><div>By looking at Qt's docs I thought that the QMetaObject class might be the place to look, but I still cannot find anything that looks seems to hold the registry of a signal's connected slots.</div><div><br></div><div>Thanks in advance :)<br></div><div><br></div><div><br></div><div><div><div><br>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">___________________________ ___ __<br>Ricardo Garcia Silva</div>
</div></div></div></div>