Busy Indicator for QML/de: Difference between revisions

From Qt Wiki
Jump to navigation Jump to search
(Convert ExpressionEngine links)
m (AutoSpider moved page Busy-Indicator-for-QML German to Busy Indicator for QML/de: Localisation)
(No difference)

Revision as of 15:57, 16 March 2015

This article may require cleanup to meet the Qt Wiki's quality standards. Reason: Auto-imported from ExpressionEngine.
Please improve this article if you can. Remove the {{cleanup}} tag and add this page to Updated pages list after it's clean.

[toc align_right="yes" depth="4"]

Deutsch | English

Busy Indicator

Die QtQuick.Controls 1.3 bringen den BusyIndicator mit. Es ist eine fertige, einfach zu benutzende Komponente. Im folgenden wird ein Beispiel-Schnipsel gegeben, der ihre Verwendung demonstriert. Weitere Informationen finden sich in der Dokumentation .

import QtQuick 2.4
import QtQuick.Controls 1.3
import QtQuick.Window 2.2

ApplicationWindow {
 title: qsTr("Hello World")
 width: 640
 height: 480
 visible: true

BusyIndicator {
 id: busyIndication
 anchors.centerIn: parent
 // 'running' defaults to 'true'
 }

Button {
 anchors.horizontalCenter: parent.horizontalCenter
 anchors.bottom: parent.bottom
 text: busyIndication.running ? "Stop Busy Indicator" : "Start Busy Indicator"
 checkable: true
 checked: busyIndication.running
 onClicked: busyIndication.running = !busyIndication.running
 }
}