Jesper K. Pedersen
292 results
Models Provided from C++
3 March 2021
Proxy Models Introduction
3 March 2021
Top 7 Shortcuts in Qt Creator
24 February 2021
Using Custom Types with Model/View
11 February 2021
Exporting Values from C++ to QML
27 January 2021
Exporting QObjects from C++ to QML
27 January 2021
QObject Ownership
27 January 2021
Creating New GUI Elements from C++
27 January 2021
Creating New Elements from C++
27 January 2021
Back to Basics: writing a model
22 January 2021
Any non-trivial Qt application uses the model/view/controller framework, a design pattern separating data management from UI. This video focuses on the "model" aspect that interacts directly with data. Models are central to Qt across all UI stacks (Widgets, Quick, remote objects). While custom views are rare, developing custom models is very typical.
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.


