SpinnerSolution::Spinner Class
class SpinnerSolution::SpinnerKlasa `Spinner` wyświetla okrągły, nieustannie animowany wskaźnik postępu, który można dołączyć do dowolnego widżetu jako nakładkę. Więcej...
| Header: | #include <solutions/spinner/spinner.h> |
| Inherits: | QObject |
Funkcje publiczne
| Spinner(SpinnerSolution::SpinnerSize size, QWidget *parent = nullptr) | |
| void | hide() |
| bool | isVisible() const |
| void | setColor(const QColor &color) |
| void | setSize(SpinnerSolution::SpinnerSize size) |
| void | setVisible(bool visible) |
| void | show() |
Dokumentacja funkcji składowych
[explicit] Spinner::Spinner(SpinnerSolution::SpinnerSize size, QWidget *parent = nullptr)
Tworzy nakładkę typu „spinner” z podanym adresem size dla przekazanego widżetu parent.
Widżet typu ` parent ` przejmuje własność utworzonego wskaźnika postępu.
void Spinner::hide()
Ukrywa wskaźnik postępu.
bool Spinner::isVisible() const
Zwraca wartość ` true `, jeśli wskaźnik postępu jest widoczny; w przeciwnym razie zwraca wartość ` false`.
void Spinner::setColor(const QColor &color)
Ustawia kolor pokrętła na color.
void Spinner::setSize(SpinnerSolution::SpinnerSize size)
Ustawia rozmiar suwaka na podaną wartość size.
void Spinner::setVisible(bool visible)
Wyświetla lub ukrywa wskaźnik obrotowy w zależności od wartości parametru ` visible`. Domyślnie wskaźnik obrotowy jest widoczny.
Zobacz także: ` isVisible()`.
void Spinner::show()
Wyświetla animowany wskaźnik postępu jako nakładkę na element nadrzędny, ustawiony wcześniej w konstruktorze.
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.