Qt Quick - 데이터 - 모델, 뷰 및 데이터 저장소의 중요 개념
대부분의 애플리케이션에는 사용자에게 표시해야 하는 데이터가 있습니다. 이러한 데이터는 다양한 소스에서 가져올 수 있으며 네트워크 소스, 로컬 파일 및 데이터베이스가 모두 데이터의 일반적인 소스입니다.
모델 및 보기
애플리케이션 내에서 비슷한 데이터를 비슷한 방식으로 표시하는 것이 유리한 경우가 많기 때문에 데이터를 포함하는 모델과 데이터를 표시하는 보기를 만드는 아이디어가 생깁니다. 뷰는 모델의 모든 데이터에 대한 델리게이트를 표시합니다.
모델/뷰 패러다임이 Qt Quick 에서 구현되는 방식에 대한 자세한 내용은 Qt Quick 의 모델 및 뷰 페이지를 참조하세요.
데이터 저장 및 액세스
데이터베이스는 일반적으로 애플리케이션에 정보를 저장하는 데 사용됩니다. Qt Quick 에서는 QtQuick.LocalStorage 모듈을 통해 관계형 데이터베이스에 대한 간소화된 액세스를 제공합니다.
© 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.