QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
21 #include "qgis_core.h"
65 if (
static_cast< int >( mProgress * 10 ) !=
static_cast< int >( progress * 10 ) )
66 emit progressChanged( progress );
108 bool mCanceled =
false;
110 double mProgress = 0.0;
113 #endif // QGSFEEDBACK_H
void setProgress(double progress)
Sets the current progress for the feedback object.
void canceled()
Internal routines can connect to this signal if they use event loop.
double progress() const
Returns the current progress reported by the feedback object.
void cancel()
Tells the internal routines that the current operation should be canceled. This should be run by the ...
Base class for feedback objects to be used for cancellation of something running in a worker thread.
void progressChanged(double progress)
Emitted when the feedback object reports a progress change.
bool isCanceled() const
Tells whether the operation has been canceled already.
QgsFeedback(QObject *parent=nullptr)
Construct a feedback object.