Class Notifier
Build from Notifier.h
+Krita 4.0.0↻Krita 4.3.0

The Notifier can be used to be informed of state changes in the Krita application.

Methods

active() ➞ bool setActive(value: bool)

Signals

applicationClosing() configurationChanged() imageClosed(str) imageCreated(Document) imageSaved(str) viewClosed(View) viewCreated(View) windowCreated() windowIsBeingCreated(Window)

Member documentation

active() ➞ bool
+Krita 4.0.0

Return

true if the Notifier is active.

+Krita 4.0.0

is emitted when the application is about to close. This happens after any documents and windows are closed.

+Krita 4.0.0

is emitted every time Krita's configuration has changed.

+Krita 4.0.0

is emitted whenever the last view on an image is closed. The image does not exist anymore in Krita

Parameters

filename

the filename of the image.

imageCreated(Document)
+Krita 4.0.0

is emitted whenever a new image is created and registered with the application.

Parameters

image(no description provided)
imageSaved(str)
+Krita 4.0.0

is emitted whenever a document is saved.

Parameters

filename

the filename of the document that has been saved.

setActive(value: bool)
+Krita 4.0.0

Enable or disable the Notifier

Parameters

value(no description provided)
viewClosed(View)
+Krita 4.0.0

is emitted whenever a view is closed

Parameters

view

the view

viewCreated(View)
+Krita 4.0.0

is emitted whenever a new view is created.

Parameters

view

the view

+Krita 4.0.0↻Krita 5.0.0

windowIsCreated is emitted after main window is completely created

+Krita 4.3.0

windowCreated is emitted whenever a window is being created

Parameters

window

the window; this is called from the constructor of the window, before the xmlgui file is loaded