Jesper K. Pedersen
282 results
Changing the Font to Jetbrains Mono in Qt Creator
21 January 2021
Sometimes views or delegates need to ask questions of the source model at the bottom of a proxy model stack. While the previous video showed using custom roles for cell-specific data, this video demonstrates a better approach for non-cell-related data: traversing proxy models yourself to reach the actual source model.
Visualizing the Model Stack in GammaRay
15 January 2021
Properties - Qt Property System
22 December 2020
Remember discussing QML properties 25 videos ago? Qt allows you to define properties in C++ for QObject subclasses by describing their type, name, and read/write methods. This final module video covers the Qt Property System, its usage, and how it fits the bigger picture. Bonus: how QVariant relates to the property system.
QVariant
22 December 2020
Signals and Slots Errors
22 December 2020
"unresolved external symbol 'public: virtual struct QMetaObject ...'" - a mysterious linker error that sometimes occurs when working with QObjects and signals/slots. This video explains what causes it, how to solve it with just one click, and what happens behind the scenes where the build system meets signals and slots.
Qt's Meta Object System
22 December 2020
Signals and Slots Mechanism
22 December 2020
Connecting Signals to Methods or Slots
22 December 2020
This video continues the signals and slots discussion, exploring three connection methods: pointer to member functions (PMFs), string-based SIGNAL/SLOT macros, and function objects (including lambdas). We'll examine the PMF syntax introduced in Qt 5 and compare it against the string-based approach, discussing the pros and cons of each.
Connecting Signals to Lambda Expressions
22 December 2020
Did you know that you can connect a QObject signal to a lambda function, or to any free function or function object, for what it's worth? It's extremely convenient, but it comes with its own set of "gotchas" that we must understand. In this video we'll explain the syntax and reason behind the good use cases of connecting to a lambda function instead of connecting to a "regular" slot.
Custom Signals and Slots
22 December 2020
In the previous videos of this module we have learned how signals and slots work. We have also learned how to connect an existing signal to an existing slot (in all its variations). In this episode, we will build up on that knowledge and discuss how to declare and implement custom signals and slots – and why we would want to do that!
Communicating between a View/Delegate and a Model
9 December 2020
Spell Checking in Qt Creator
19 November 2020
This video explains how to install and use the SpellChecker plugin for Qt Creator, a third-party contribution. GUI applications contain many user-visible strings, so shipping software with spelling mistakes would be embarrassing. While word processors have long included spell checking, programming editors traditionally lacked this feature - until now!
Understanding Contents Margins in Qt Layouts
5 November 2020
Using GammaRay to Find the Class of an UI Element
23 October 2020
When an application is being introspected by GammaRay, you can use Control + Shift + Mouse click on any of its widgets to select it for further inspection. This lets you check all the properties for the widget, its positioning, as well as simply get an answer to the question: of which class is this widget?
Unsorting Headers in QTableView
21 October 2020
Using Clang-Format to Ensure Style Guidelines
2 October 2020
Sessions in Qt Creator
18 September 2020
Populating a Combobox from Qt Designer
8 September 2020


