QGIS API Documentation 2.17.0-Master (bf77d09)
A custom event that is designed to be fired when a layer extent has been fully calculated. More...
|QgsProviderExtentCalcEvent (QgsRectangle *layerExtent)|
|QgsRectangle *||layerExtent () const|
|Public Member Functions inherited from QEvent|
|QEvent (Type type)|
|bool||isAccepted () const|
|void||setAccepted (bool accepted)|
|bool||spontaneous () const|
|Type||type () const|
|Static Public Member Functions inherited from QEvent|
|int||registerEventType (int hint)|
|Properties inherited from QEvent|
A custom event that is designed to be fired when a layer extent has been fully calculated.
This custom QEvent is designed to be fired when the full extent of a layer has been calculated. It was initially included in QGIS to help the QgsPostgresProvider provide the asynchronous calculation of PostgreSQL layer extents.
Events are used instead of Qt signals/slots as events can be received asynchronously, which makes for better mutlithreading behaviour and less opportunity for programmer mishap.
|QgsRectangle * QgsProviderExtentCalcEvent::layerExtent||(||)||const|