Hi Jürgen,

thanks for your help, it works.

It poses another closely related question: The `initializationCompleted`
signal is only emitted once. If the plugin is loaded together with QGIS,
this is fine. However, if it is loaded later, maybe because it is
installed by a user from within a running QGIS process, the plugin does
not receive this signal. QGIS must be restarted for the plugin to work.
Is there a way to figure out whether this signal has already been
emitted in the past (for the current QGIS process) / the initialization
has been completed?

Sebastian


Am 17.08.19 um 12:17 schrieb Jürgen E. Fischer:
> Hi Sebastian,
> 
> On Sat, 17. Aug 2019 at 11:25:59 +0200, Sebastian M. Ernst wrote:
>> in a QGIS Python plugin, I want to run a function (a single time) when
>> the QGIS main window has actually been displayed / fully loaded.
> 
> iface has a signal initializationCompleted, that you connect in initGui.
> 
> 
> Jürgen
> 

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
QGIS-Developer mailing list
[email protected]
List info: https://lists.osgeo.org/mailman/listinfo/qgis-developer
Unsubscribe: https://lists.osgeo.org/mailman/listinfo/qgis-developer

Reply via email to