Jesper K. Pedersen
294 results
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
GridLayout in Qt Designer
2 September 2020
Implementing Swipe
19 June 2020
Animations in ListView
19 June 2020
GridView
19 June 2020
GridView is a strict companion of ListView. As the name says, it's a view – something that shows delegates, instantiated from a model. The delegates are arranged in a reflowing grid, rather than in a vertical or horizontal sequence – a bit like a file manager in icon mode. Apart from this, GridView is extremely similar to ListView.
PathView
19 June 2020
PathView is closely related to PathAnimation: it's a view that arranges its elements on an arbitrary path. The delegates instantiated by the PathView will move, like a carousel, on the path provided by the user. In extra features, we specify how to transform each delegate as it moves along the path (by modifying arbitrary properties such as scale, opacity, and so on).
Qt Quick Layouts
19 June 2020
Qt Quick Layouts are highly effective for automatically positioning and resizing elements. Acting as positioners, layouts organize their children based on criteria such as vertical, horizontal, or grid arrangements. Unlike positioners, they can also resize elements and provide a more comprehensive API for managing size control.
Clipping
11 June 2020
This video is about the "clip" property. You can set it on any item in order to make it clip its children to its geometry. What has it to do with views? It's quite simple: ListView is generally an element where you always want clipping to be enabled, otherwise the entries in your list will "leak" outside of its borders.
Collapsible Sections
11 June 2020


