RoundButton QML Type

角が丸く、ユーザーがクリックできるプッシュボタンコントロールです。詳細...

Import Statement: import QtQuick.Controls
Inherits:

Button

プロパティ

詳細説明

RoundButton はButton と同じですが、radius プロパティがあり、背景をカスタマイズすることなく角を丸くすることができます。

RoundButton {
    text: "\u2713" // Unicode Character 'CHECK MARK'
    onClicked: textArea.readOnly = true
}

RoundButtonと ボタンコントロールのカスタマイズも参照してください

プロパティの説明

radius : real

このプロパティはボタンの半径を保持します。

角を少し丸めた比較的四角いボタンを作成するには、3 のような小さな値を使用します。

完全に円形のボタン(デフォルト)を作成するには、ボタンの幅または高さの半分に等しい値を使用し、ボタンの幅と高さを同じにします。

このプロパティをデフォルト値に戻すには、その値をundefined に設定します。


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