指示器显示活动 (或不活动) 状态。 更多...
| import 语句: | import QtQuick.Extras 1.4 | 
| Since: | Qt 5.5 | 
						
					
处于活动状态的 StatusIndicator。
						
					
处于非活动状态的 StatusIndicator。
StatusIndicator 显示活动 (或不活动) 状态。通过使用不同颜色,透过 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"
						
						.