Frame QML Type
Visueller Rahmen für eine logische Gruppe von Steuerelementen. Mehr...
Detaillierte Beschreibung
Frame wird verwendet, um eine logische Gruppe von Steuerelementen innerhalb eines visuellen Rahmens zusammen anzuordnen. Frame bietet kein eigenes Layout, sondern erfordert die Positionierung seines Inhalts, z. B. durch die Erstellung eines RowLayout oder eines ColumnLayout.
Elemente, die als Kinder eines Frames deklariert werden, sind automatisch dem contentItem des Frames untergeordnet. Dynamisch erstellte Elemente müssen explizit dem contentItem untergeordnet werden.
Wenn nur ein einzelnes Element innerhalb eines Frames verwendet wird, passt es sich der impliziten Größe des enthaltenen Elements an. Dies macht es besonders geeignet für die Verwendung in Verbindung mit Layouts.
Frame { ColumnLayout { anchors.fill: parent CheckBox { text: qsTr("E-mail") } CheckBox { text: qsTr("Calendar") } CheckBox { text: qsTr("Contacts") } } }
Siehe auch Anpassen von Frame- und Container-Steuerelementen.
© 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.