Na tej stronie

Utils::ProgressIndicator Class

class Utils::ProgressIndicator

Klasa `ProgressIndicator` wyświetla okrągły, nieustannie animowany wskaźnik postępu. Więcej...

Header: #include <ProgressIndicator>
Inherits: Utils::OverlayWidget

Funkcje publiczne

ProgressIndicator(Utils::ProgressIndicatorSize size, QWidget *parent = nullptr)
void setIndicatorSize(Utils::ProgressIndicatorSize size)
QSize sizeHint() const

Szczegółowy opis

Należy z niej skorzystać, jeśli chcesz zasygnalizować, że trwa jakaś operacja, ale nie dysponujesz szczegółowymi informacjami o postępie wymaganymi do wyświetlenia paska postępu. Widżet można tworzyć na żądanie lub utworzyć go raz i wyświetlać tylko wtedy, gdy jest to potrzebne. Animacja jest odtwarzana tylko wtedy, gdy widżet jest widoczny.

Dokumentacja funkcji składowych

[explicit] ProgressIndicator::ProgressIndicator(Utils::ProgressIndicatorSize size, QWidget *parent = nullptr)

Tworzy obiekt typu ProgressIndicator o rozmiarze size i z obiektem nadrzędnym parent.

Zobacz także setIndicatorSize().

void ProgressIndicator::setIndicatorSize(Utils::ProgressIndicatorSize size)

Zmienia rozmiar wskaźnika postępu na size.

Zobacz także ProgressIndicatorPainter::indicatorSize().

QSize ProgressIndicator::sizeHint() const

Zwraca rozmiar wskaźnika w pikselach niezależnych od urządzenia.

Zobacz także: ProgressIndicatorPainter::indicatorSize().

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.