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
12 August 2024
Qt offers a rather wide spectrum of classes for accessing contents of files, including reading and writing bytes to parsing XML, JSon, and CBor files. In addition to that, it also has useful API's for copying files, getting file information (like is it readable), and traversing whole directories. Learn about all that and more in this episode.
Links:
* KDAB training info: https://training.kdab.com/
The example code showcased in this video is available here: https://github.com/KDABLabs/kdabtv/tree/master/Programming-With-Qt-Widgets
0:00 Introduction
0:29 Qt vs C++
1:56 QFile
3:50 QFile related classes
5:45 KDAB trainings
6:18 Reading and writing files
13:22 QDataStream
15:35 QJson
18:07 File paths
19:41 File operations/information
21:30 File type (Mime Data)
23:13 Specialized file classes
25:15 Directories or maybe QDir
26:23 Conclusion
All 'Introduction to Qt Widgets - Module 1' videos: https://www.youtube.com/playlist?list=PL6CJYn40gN6hgf7zCKF2Rv9Y0WoN8RVGf
All 'Introduction to Qt Widgets - Module 2' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6j_c41CFMprvg9EiWz0WdSy
All 'Introduction to Qt Widgets - Module 3' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6hWZO_viEf1rfjgk4E6SCKd
All 'Introduction to Qt Widgets - Module 4' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6iXUNQMb2GkEjV_oK6Xid9-
All 'Introduction to Qt Widgets - Module 5' videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6h1tsLAETdrrFlsVMeYpiHI