Jesper K. Pedersen
316 results
This episode completes the inline headers implementation by adding the required signal connections. It expands into class design discussion, showing how to create drop-in replacements for QTableView and QTreeView with row span support while avoiding code duplication through templated superclasses and private class inheritance.
Migrating to Qt6 - QVariant
19 July 2022
This episode discusses runtime QVariant issues encountered during Qt 6 migration of an in-house tool. Topics include debugging QVariant problems, using QVariant::fromValue for solutions, issues with QVariant::toString(), the removal of QVariant operator<(), using QVariant::compare, and improved Money comparison in both Qt 5 and Qt 6.
Mass Text Editing in Qt Creator
5 July 2022
The C++ Explicit Keyword and Qt
28 June 2022
This episode explores C++'s explicit keyword: why there's no implicit keyword, why it's needed for QObjects, and available tooling. Topics include implicit conversions in string classes, when conversions go wrong, explicit to the rescue, named constructors, QObject-specific issues, Q_IMPLICIT, explicit(false), clang-tidy support, and rules for when implicit conversions are acceptable.
This episode completes the proxy model for reversing rows by handling the challenging layoutAboutToBeChanged signal. It covers understanding QModelIndex, updating persistent model indexes, layoutAboutToBeChanged and layoutChanged signals, and why persistent index updates differ for other operations like rowsInserted.
Git Switch and Restore
1 June 2022
What Did That Macro Expand to?
4 May 2022
Subclassing isn't always the solution!
20 April 2022
No More Booleans!
14 April 2022
QML Tips and Tricks - Introduction
5 April 2022
QtDevCon 2022 - Programme release
4 April 2022
Qt Creator and AI - April Fool's Video
1 April 2022
Unit Testing from Qt Creator
22 March 2022
Whether you're new to unit testing or already write tests, this episode shows how to set up Qt's testing framework and maximize Qt Creator's testing features. Covers Qt's framework versus others, test cases with QCOMPARE, table-driven testing, Qt Creator integration, debugging tests, and CMake integration.


