Signal Throttlers
KDAB KDAB
12.8K subscribers
404 views
14

 Published On Jul 24, 2024

Sometimes a signal fires too often, and, as a result, your user interface feels sluggish. A solution to this is often a timer to compress the signal.

In this episode, I'll show you a class from KDToolBox which makes such code easier to read.

Links:
https://github.com/KDAB/KDToolBox/tre...

All 'Introduction to Qt Widgets' episodes:    • Introduction to Qt Widgets  

0:00 Intro
0:22 The UI which is slow
1:37 The slow application
4:30 One solution: use a QTimer
5:38 Advertizement
6:03 The QSignalThottler example
7:59 Using KDSIgnalDebouncer in the list view example
9:11 Is the UI now slower?
10:23 The setup of dashlets and favorites
11:24 The code for the dashlets
13:58 The problem: slow start up time
15:35 The code for delaying initialization

The example code showcased in this video is available here: https://github.com/KDABLabs/kdabtv/tr...

All Qt Widgets and more videos:
   • Qt Widgets and more  

About the host:
The video is presented by Jesper Pedersen, who started with Qt back when Qt was widgets only and the version was 1.44, which gives him 21 years of experience with Qt. Since 2000 he has taught almost 100 Qt classes, ranging from Qt Widgets to QML. Heck, Jesper even taught a few classes on QTopia Core — Trolltech's initial attempt at creating a phone stack. Today Jesper holds a fancy business title, but that doesn't prevent him from coding both in his job and in his spare time.

Every month our newsletter is featuring technical blogs on Qt, C++ and 3D topics: https://www.kdab.com/development-reso...

About KDAB:
KDAB offers experienced software experts to help you deliver functional, high-performing and innovative software across embedded, mobile and desktop platforms for projects using C++, Qt, QML/Qt Quick, OpenGL, Qt 3D and more. https://www.kdab.com/software-services

KDAB experts regularly take time out to deliver KDAB’s world class training, in-house or at open enrolment courses around the world. We are the market leaders for training in Qt, OpenGL and C++.

Contact us to find out more at [email protected] or visit our website: https://www.kdab.com/software-service...

We are over 100 people, located all around the world. Our Head Office is in Sweden and we have other offices in Germany, France, the UK and the USA. https://www.kdab.com/about/contact/

show more

Share/Embed