Lazy QObject Tree Traversal
Offered By: NDC Conferences via YouTube
Course Description
Overview
Explore lazy QObject tree traversal techniques in this 38-minute conference talk from NDC Conferences. Dive into modern C++ approaches for improving iteration over QObject trees, addressing issues with current non-lazy implementations. Learn how to create custom composable range objects and leverage coroutines for on-demand retrieval of QObject children. Gain insights into the Qt framework, ranges, and coroutines, and discover practical implementations for lazy traversal. Examine code examples, including filter functions, cursor creation, and constexpr usage. Understand the benefits of lazy evaluation in QObject tree traversal and how it can enhance performance in your C++ applications.
Syllabus
Intro
About Qt
About QObject
QObject trees
Tree traversing
findChildren implementation
Toolbox
Coroutines in C++: core definitions
Coroutines in C++: implementation
Coroutines in C++: libraries
Coroutines in C++: usage example
Lazy traversal with coroutines: implementation
Lazy traversal with coroutines: usage example
Implementation without coroutines
Ranges in C++: example
Everything is lazy!
Create a new view
Create a cursor (single-pass)
Basic functionality implementation constexpr auto children
QObject tree traversal
Filter by type, name, and regex
Make a copy
Test environment
Useful links
Taught by
NDC Conferences
Related Courses
Health Informatics: Data and Interoperability StandardsGeorgia Institute of Technology via edX Fractal Architecture
NDC Conferences via YouTube Strangling the Monolith - Applied Patterns & Practices from the Trenches
NDC Conferences via YouTube Refactoring Is Not Just Clickbait
NDC Conferences via YouTube Amazing Algorithms for Solving Problems in Software
NDC Conferences via YouTube