Jesper K. Pedersen
286 results
Layout in Qt Designer
17 January 2024
Hooking Your Qt Designer UI up to C++ Code
16 January 2024
Once you have created your user interfaces in Qt Designer, then you want to hook that code up with C++. In other words, you may want to get some code executed when the user chooses save in the UI, or you may want to customize the UI say disable or hide part of it, based on data coming in over the network. In this episode, you will learn how to set that up.
First Steps in Qt Designer
15 January 2024
Setting up a layout in C++ is rather cumbersome. Fortunately, Qt comes with a tool called Qt Designer, which allows you to create your UIs by simply drag and drop'ing it together. In this episode, Jesper will show you the basics of setting up a window with menu bars and toolbars, and configure a number of properties on the UI elements.
Show Me Your IDE: Visual Studio - Part 2
19 December 2023
Show Me Your IDE: Visual Studio - Part 1
13 December 2023
Introduction to Qt Widgets Tutorials
27 November 2023
The Event System
22 November 2023
The Backstage Tour Part 2
21 November 2023
The Backstage Tour
20 November 2023
Adding Your Own Signals and Slots
17 November 2023
Signals and Slots with Lambdas
16 November 2023
Qt 4's Signal and Slots
15 November 2023
Before Qt5 was released, the signal & slots mechanism was somewhat different. This episode will tell you what it looked like back then. There are two purposes to that: (1) You will likely find some references on stack overflow telling you something using that syntax, and (2) it helps enlighten the story about the Qt5 way of doing it.
Signals and Slots
14 November 2023
Qt's signal and slots system is a cornerstone feature enabling object communication throughout Qt applications. This episode introduces the fundamental concepts of signals and slots, demonstrates how to connect signals to slots for event handling and data flow, and covers the different connection methods available for establishing these communication pathways between objects.
Qt Object Model and Qwidgets Basics
13 November 2023
One of the most important classes in Qt is without a doubt QWidget, which is at the core of any UI (in the widgets world). QWidget has two purposes: (1) being the super class for any widgets, and thus, providing the API's for mouse, key, and focus handling among a lot of other things, and (2) being a "canvas" where you can lay out other widgets on.
Qt's Object Model
10 November 2023
The Qt Help Text
9 November 2023
Compiling Hello World
8 November 2023
Hello World
7 November 2023
This first episode introduces Qt Widgets development with a "Hello World" example and covers foundational concepts. Jesper demonstrates the basic Qt Widgets application structure, explains the event loop mechanism that drives Qt applications, discusses the QApplication class and its role in managing the application lifecycle, and shows how to run the program.
Implementing std::invoke in C++14
19 July 2023
Adding sort_by to KDAlgorithms required implementing std::invoke for C++14 compatibility. This video provides insights into the implementation process, covering advanced C++ concepts including SFINAE and tag dispatching for template metaprogramming, if constexpr for conditional compilation, parameter packs for variadic templates, and static_assert for compile-time validation.
How to make widgets read-only in Qt
12 July 2023
QLineEdit and QTextEdit have setReadOnly() methods, but QComboBox doesn't. Making widgets read-only without truly disabling them (which prevents interactions like tab switching or scrolling) requires alternative approaches. This video explores solutions for making QComboBox and other widgets without setReadOnly() methods effectively read-only while maintaining their interactive capabilities.


