Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Lazy QObject Tree Traversal

NDC Conferences via YouTube

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
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

Reviews

Start your review of Lazy QObject Tree Traversal

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.