このページでは

DelayButton QML Type

長押しすると反応するチェックボタン。詳細…

Import Statement: import QtQuick.Controls
Inherits:

AbstractButton

プロパティ

信号

詳細説明

DelayButton は、ボタンがchecked 状態になり、activated() シグナルが発信されるまでに遅延を組み込んだ、チェック可能なボタンです。この遅延により、誤操作を防ぐことができます。

現在の進行状況は、0.0 から1.0 までの間の小数値で表されます。activated() が発火するまでの時間はミリ秒単位で測定され、delay プロパティで設定できます。

進行状況は、ボタン上の進行状況インジケーターによって示されます。

「DelayButtonおよびButton コントロールのカスタマイズ」も参照してください 。

プロパティのドキュメント

delay : int

このプロパティは、progress が1.0 に到達し、activated() を発信するまでに要する時間(ミリ秒単位)を保持します。

デフォルト値は3000 ミリ秒です。

progress : real

このプロパティは、進行状況インジケーターに表示される現在の進行状況を、0.0 ~1.0 の範囲で保持します。

transition : Transition

このプロパティは、ボタンが押されたときまたは離されたときに、progress プロパティに適用される遷移を保持します。

シグナルのドキュメント

activated()

このシグナルは、progress が1.0 に達したときに発生します。

注: 対応するハンドラは onActivated です。

© 2026 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.