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
6 October 2022
In this series I've multiple times stepped into the Qt source code itself to diagnose a problem.
That is indeed so nice, just imagine understanding some of those issues without being able to see what is going on behind the screens.
However, there are a few obstacles in the source code - or in other words a few things that I don't understand. What is Q_D for example, and where do the variables d and q come from?
In this episode, I'll ask Peppe to give me a guided tour around the Qt sources.
Links:
* Unfortunately, the web page which allows you to see which configs there are that Peppe mentions at 8:11 was discontinued.
* QWAM episode on exporting classes https://youtu.be/9-fSgD068vI?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI&t=149
* QWAM episode on Proxy models: https://www.youtube.com/watch?v=fPy0nuGWTZk&list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
0:00 Welcome
2:15 QT_REQUIRE_CONFIG
5:12 QT_NO_PROPERTIES
6:12 QT_CONFIG
7:35 Which settings exists to configure Qt
8:13 QT_BEGIN_NAMESPACE
9:24 Q_WIDGETS_EXPORT
10:14 Q_D / d→
12:01 Q_DECLARE_PRIVATE
13:11 The PIMPL pattern - save on recompilation time
15:40 The PIMPL pattern - binary compatibilities
17:15 The private class
21:44 Private directories
22:47 Q_PRIVATE_SLOT
31:44 Q_SIGNALS / Q_SLOTS
35:09 QPrivateSignal
All QML tips and tricks videos : https://www.youtube.com/playlist?list=PL6CJYn40gN6jWHP5krsQrVGyYtKh3A3be
All Qt Widgets and more videos:
https://www.youtube.com/playlist?list=PL6CJYn40gN6gf-G-o6syFwGrtq3kItEqI
Stay on top of the latest news, publications, events and more.
Go to Sign-up
Learn Modern C++
Our hands-on Modern C++ training courses are designed to quickly familiarize newcomers with the language. They also update professional C++ developers on the latest changes in the language and standard library introduced in recent C++ editions.
Learn more