mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-19 00:07:15 -04:00
Correctly render qgsMapRendererJob use case steps in docs
This commit is contained in:
parent
97b56fef2e
commit
a7bf220394
@ -25,11 +25,11 @@ amount of time.
|
|||||||
|
|
||||||
Common use case:
|
Common use case:
|
||||||
|
|
||||||
# prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
|
1. Prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
|
||||||
# create QgsMapRendererJob subclass with QgsMapSettings instance
|
2. Create QgsMapRendererJob subclass with QgsMapSettings instance
|
||||||
# connect to job's :py:func:`~finished` signal
|
3. Connect to job's :py:func:`~finished` signal
|
||||||
# call :py:func:`~start`. Map rendering will start in background, the function immediately returns
|
4. Call :py:func:`~start`. Map rendering will start in background, the function immediately returns
|
||||||
# at some point, slot connected to :py:func:`~finished` signal is called, map rendering is done
|
5. At some point, slot connected to :py:func:`~finished` signal is called, map rendering is done
|
||||||
|
|
||||||
It is possible to cancel the rendering job while it is active by calling :py:func:`~cancel` function.
|
It is possible to cancel the rendering job while it is active by calling :py:func:`~cancel` function.
|
||||||
|
|
||||||
|
@ -167,11 +167,11 @@ struct LabelRenderJob
|
|||||||
*
|
*
|
||||||
* Common use case:
|
* Common use case:
|
||||||
*
|
*
|
||||||
* # prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
|
* 1. Prepare QgsMapSettings with rendering configuration (extent, layer, map size, ...)
|
||||||
* # create QgsMapRendererJob subclass with QgsMapSettings instance
|
* 2. Create QgsMapRendererJob subclass with QgsMapSettings instance
|
||||||
* # connect to job's finished() signal
|
* 3. Connect to job's finished() signal
|
||||||
* # call start(). Map rendering will start in background, the function immediately returns
|
* 4. Call start(). Map rendering will start in background, the function immediately returns
|
||||||
* # at some point, slot connected to finished() signal is called, map rendering is done
|
* 5. At some point, slot connected to finished() signal is called, map rendering is done
|
||||||
*
|
*
|
||||||
* It is possible to cancel the rendering job while it is active by calling cancel() function.
|
* It is possible to cancel the rendering job while it is active by calling cancel() function.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user