På den här sidan

Utils::ProgressIndicator Class

class Utils::ProgressIndicator

Klassen ProgressIndicator visar en cirkulär, oändligt animerad förloppsindikator. Mer...

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

Offentliga funktioner

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

Detaljerad beskrivning

Använd den om du vill visa att något arbete pågår, men inte har den detaljerade information om förloppet som krävs för en förloppsindikator. Du kan antingen skapa widgeten vid behov eller skapa den en gång och endast visa den vid behov. Animationen körs endast medan widgeten är synlig.

Dokumentation för medlemsfunktioner

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

Skapar en ProgressIndicator med storleken size och med överordnad objektet parent.

Se även setIndicatorSize().

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

Ändrar storleken på förloppsindikatorn till size.

Se även ProgressIndicatorPainter::indicatorSize().

QSize ProgressIndicator::sizeHint() const

Returnerar indikatorns storlek i enhetsoberoende pixlar.

Se även 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.