指示器顯示活動 (或不活動) 狀態。 更多...
| import 語句: | import QtQuick.Extras 1.4 |
| Since: | Qt 5.5 |
A StatusIndicator in the active state.
A StatusIndicator in the inactive state.
The StatusIndicator displays active or inactive states. By using different colors via the color property, StatusIndicator can provide extra context to these states. For example:
| QML | 結果 |
import QtQuick 2.2 import QtQuick.Extras 1.4 Rectangle { width: 100 height: 100 color: "#cccccc" StatusIndicator { anchors.centerIn: parent color: "green" } } |
|
You can create a custom appearance for a StatusIndicator by assigning a StatusIndicatorStyle .
|
active : bool |
此特性指定指示器是活動的,還是不活動的。
默認值為
false
(不活動)。
|
color : color |
此特性指定指示器的顔色當它是活動的。
默認值為
"red"
.