DelayButton QML Type
長く押し続けるとトリガーするチェックボタン。もっと見る
Import Statement: | import QtQuick.Controls |
Inherits: |
プロパティ
- delay : int
- progress : real
- transition : Transition
信号
詳細説明
DelayButton はチェック可能なボタンで、ボタンがchecked になり、activated() シグナルが発せられる前に遅延が組み込まれます。この遅延により、誤って押してしまうことを防ぎます。
現在の進行状況は、0.0
と1.0
の間の 10 進値で表されます。activated() が発信されるまでの時間はミリ秒単位で、delay プロパティで設定できます。
進行状況は、ボタン上の進行状況インジケータで示されます。
DelayButtonと ボタンコントロールのカスタマイズも参照してください 。
プロパティの説明
progress : real |
このプロパティは、進行状況インジケータによって表示される現在の進行状況を0.0
-1.0
の範囲で保持します。
transition : Transition |
このプロパティは、ボタンが押されたり離されたりしたときにprogress プロパティに適用される遷移を保持します。
シグナルの説明
activated() |
このシグナルは、progress が1.0
に達したときに発せられます。
注意: 対応するハンドラはonActivated
です。
© 2025 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.