BusyIndicatorサンプル
BusyIndicatorのサンプル
テスト用QML
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtMultimedia 5.9
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("BusyIndicatorサンプル")
Audio { id: clickSound1; source: "Sounds/btn01.mp3" }
Audio { id: clickSound2; source: "Sounds/btn02.mp3" }
Column {
BusyIndicator {
id: busyIndicator
running: false
}
Button {
text: "Start"
onClicked: {
if (busyIndicator.running) clickSound2.play()
else clickSound1.play()
busyIndicator.running = !busyIndicator.running
text = busyIndicator.running ? "Stop" : "Start"
}
}
}
}
import QtQuick 2.9
import QtQuick.Controls 2.2
import QtQuick.Layouts 1.3
import QtMultimedia 5.9
ApplicationWindow {
visible: true
width: 640
height: 480
title: qsTr("BusyIndicatorサンプル")
Audio { id: clickSound1; source: "Sounds/btn01.mp3" }
Audio { id: clickSound2; source: "Sounds/btn02.mp3" }
Column {
BusyIndicator {
id: busyIndicator
running: false
}
Button {
text: "Start"
onClicked: {
if (busyIndicator.running) clickSound2.play()
else clickSound1.play()
busyIndicator.running = !busyIndicator.running
text = busyIndicator.running ? "Stop" : "Start"
}
}
}
}
う〜ん…もうちょっとリサイズ処理なんとかならないかな?^^;
実行結果
Author And Source
この問題について(BusyIndicatorサンプル), 我々は、より多くの情報をここで見つけました https://qiita.com/Taro3/items/6ad8c70424640349c806著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .