Sign up for the KDAB Newsletter
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Find what you need - explore our website and developer resources
8 February 2022
Ever wished you could avoid a Qt application's freezing while it's querying a database, without the complexity of threads? This video shows how to keep an application responsive with the Asynchronous SQL library. Watch the author of the library, Daniel Nicoletti, show you how it works.
00:00 Intro
00:38 Using QtSql directly
03:35 Using QtSql with threads
06:23 Using ASql
10:17 Cancelling a query with ASql
12:41 Database schema migrations with ASql
Link to download ASql (MIT license): https://github.com/cutelyst/asql.git
You can find the code shown in this video here: https://github.com/KDAB/kdabtv/tree/master/Cutelyst/Database
All videos about Cutelyst can be found here:
https://www.youtube.com/playlist?list=PL6CJYn40gN6hU3brE_XnbygSUq0TXNUaH