0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

BusyIndicatorサンプル

Posted at

#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"
            }
        }
    }
}

う〜ん…もうちょっとリサイズ処理なんとかならないかな?^^;
##実行結果
SignalTransitionサンプル動画
※Linux Mint 18.2 & Qt 5.9.1使用

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?