FutureProgress Classclass Core::FutureProgress
|void||setTitle(const QString &title)|
|QWidget *||widget() const|
Use the instance of this class that was returned by ProgressManager::addTask() to define a widget that should be shown below the progress bar, or to change the progress title. Also use it to react on the event that the user clicks on the progress indicator (which can be used to e.g. open a more detailed view, or the results of the task).
Member Function Documentation
Connect to this signal to get informed when the operation is canceled.
Connect to this signal to get informed when the user clicks on the progress indicator.
Another way to get informed when the task has finished.
QFuture<void> FutureProgress::future() const
Returns a QFuture object that represents this running task.
Returns the error state of this progress indicator.
void FutureProgress::setTitle(const QString &title)
Changes the title of the progress indicator.
See also title().
void FutureProgress::setWidget(QWidget *widget)
Sets the widget to show below the progress bar. This will be destroyed when the progress indicator is destroyed. Default is to show no widget below the progress indicator.
See also widget().
QString FutureProgress::title() const
Returns the title of the progress indicator.
See also setTitle().
QWidget *FutureProgress::widget() const
Returns the custom widget that is shown below the progress indicator.
See also setWidget().
© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.