RoundButton QML Type
Un pulsante di comando con angoli arrotondati su cui l'utente può cliccare. Altro...
| Import Statement: | import QtQuick.Controls |
| Inherits: |
Proprietà
- radius : real
Descrizione dettagliata

RoundButton è identico a Button, tranne per il fatto che dispone della proprietà radius, che consente di arrotondare gli angoli senza dover personalizzare l'background.
RoundButton {
text: "\u2713" // Unicode Character 'CHECK MARK'
onClicked: textArea.readOnly = true
}Vedi anche Personalizzazione dei controlliRoundButton e Button.
Documentazione delle proprietà
radius : real
Questa proprietà indica il raggio del pulsante.
Per creare un pulsante relativamente quadrato con angoli leggermente arrotondati, utilizzare un valore piccolo, ad esempio 3.
Per creare un pulsante completamente circolare (impostazione predefinita), utilizzare un valore pari alla metà della larghezza o dell'altezza del pulsante e impostare larghezza e altezza del pulsante in modo che siano identiche.
Per ripristinare il valore predefinito di questa proprietà, impostare il suo valore su undefined.
© 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.