ModelViews and Databases
Connecting your PyQt6 application to data sources

All but the simplest of apps will usually need to interact with some kind of external data store — whether that's a database, a remote API or simple configuration data. The Qt ModelView architecture simplifies the linking and updating your UI with data in custom formats or from external sources. In this PyQt6 tutorial we'll discover how you can use Qt ModelViews to build high performance Python GUIs.

Start with “The ModelView Architecture”