Core::FutureProgress Class
class Core::FutureProgressLa classe FutureProgress viene utilizzata per personalizzare l'aspetto degli indicatori di avanzamento creati tramite la classe ProgressManager. Altro...
| Header: | #include <coreplugin/progressmanager/futureprogress.h> |
| Inherits: | QWidget |
Funzioni pubbliche
| QFuture<void> | future() const |
| bool | hasError() const |
| void | setTitle(const QString &title) |
| void | setWidget(QWidget *widget) |
| QString | title() const |
| QWidget * | widget() const |
Segnali
Descrizione dettagliata
Utilizzare l'istanza di questa classe restituita da ProgressManager::addTask() per definire un widget da visualizzare sotto la barra di avanzamento o per modificare il titolo dell'avanzamento. Utilizzarla anche per reagire all'evento generato quando l'utente fa clic sull'indicatore di avanzamento (che può essere utilizzato, ad esempio, per aprire una vista più dettagliata o per visualizzare i risultati dell'attività).
Documentazione delle funzioni membro
[signal] void FutureProgress::canceled()
Collegati a questo segnale per ricevere una notifica quando l'operazione viene annullata.
[signal] void FutureProgress::clicked()
Collegati a questo segnale per ricevere una notifica quando l'utente fa clic sull'indicatore di avanzamento.
[signal] void FutureProgress::finished()
Un altro modo per sapere quando l'attività è terminata.
QFuture<void> FutureProgress::future() const
Restituisce un oggetto ` QFuture ` che rappresenta questa attività in esecuzione.
bool FutureProgress::hasError() const
Restituisce lo stato di errore di questo indicatore di avanzamento.
void FutureProgress::setTitle(const QString &title)
Modifica l'title e dell'indicatore di avanzamento.
Vedi anche title().
void FutureProgress::setWidget(QWidget *widget)
Imposta il widget " widget " in modo che venga visualizzato sotto la barra di avanzamento. Questo widget verrà eliminato quando verrà eliminato l'indicatore di avanzamento. Per impostazione predefinita, sotto l'indicatore di avanzamento non viene visualizzato alcun widget.
Vedi anche widget().
QString FutureProgress::title() const
Restituisce il titolo dell'indicatore di avanzamento.
Vedi anche setTitle().
QWidget *FutureProgress::widget() const
Restituisce il widget personalizzato visualizzato sotto l'indicatore di avanzamento.
Vedi anche setWidget().
Copyright © The Qt Company Ltd. and other contributors. 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.