KDAB_Tree_Header_Mobile KDAB_Tree_Header_Web

Trusted Software Excellence since 1999

Jesper K. Pedersen

269 results

Always try to run the latest version of the tools you're using. They bring bugfixes and more features. Thankfully, upgrading Qt Creator is just a matter of a few clicks -- in the right tool, if you can find it. In this video, Jesper shows how it's done.

Number 30 in the Qt Widgets and More series, this video address the issue where, if you are doing a larger refactoring involving central files, you might end up recompiling over and over again while fixing just a single source file. In these situations, using Qt Creator's ability to recompile only a single file is very useful. But there's more.

This video will show you how you debug loading of the plugins, using strace on Linux and procmon on Windows.

In the previous episodes, we created and compiled a plugin for Qt designer. The final part missing is to deploy the files in the right directories.This episode discusses the CMake magic that makes that happen.

In this fourth episode of our mini series on developing plugins for Qt Designer, we finally implement the classes that make up the plugin.

Making widgets into standalone plugins can be challenging if they weren't carefully designed during development. A solution is restructuring your application into a library plus simple main function using that library. This episode covers everything needed for this architectural transformation to enable proper widget plugin extraction.

Before you create a plugin, your classes may be configured using constructors like: class Wishes { public: Wishes(bool isExclusive, const QColor& color, QWidget* parent); ... } But how do you handle these parameters if your constructors can't take anything but the parent pointer? This episode will discuss a few different possible solutions.

In this first episode on developing plugins for Qt Designer, we will discuss the widget promotion feature and its shortcomings compared to plugins. This is the first video out of 6 on this topic. So, stay tuned!

In your code, you will likely find numerous places where you go from an enum to a QString and back. This video shows you the smart way to do it, using Qt's introspection facilities.

A nice feature of QListView and QTreeView is that the user can adapt the width of the columns using the mouse. A problem with that, however, is what to do if the column width is not wide enough to show all text. In this episode we will present an adapter that allows your model to provide multiple different strings the view can choose from.

In this final episode, you will learn about how the templates are moved to specific sections, and I'll also share with you an "install" script that you (and your co-workers) can use to get the templates copied to the right place.

In this third video of the series on developing document templates for Qt Creator, we will see how we can ask the user for additional input in the "new file" dialog, and use that in the templates.

Learn how to create custom document templates in Qt Creator through these four videos. This episode shows how to add a new .ui file to the generated file set, providing deeper insight into Qt Creator's macro system.

Learn how to create custom document templates in Qt Creator through these four videos. This first episode creates a simple class template based on the "C++ class" template, explains macro usage, and shows how macros expand into class names from the "new file" dialog.

I use many custom classes like Money, PercentageValue, and TimeValue with model/view. For years I've written `return QVariant::fromValue(cost);` in my QAbstractItemModel data methods. This short video shows a simple trick to avoid this.

In this video, we'll see how to examine a stack of proxy models using GammaRay, the Qt swiss-army knife. There are a couple of tips and tricks for you, to let you know how GammaRay works under the hood.

In this video, we talk about QSortFilterProxyModel, a proxy model class that sorts and filters a given source model. QSortFilterProxyModel is a concrete class and can either be used as-is, or subclassed in order to fine tune some of its behaviors.

In this video, we discuss the basics of model/view programming with Qt/QML. How do we expose a set of data (a list, a table, etc.) from the business logic to C++? How much flexibility do we have before the data actually reaches QML?

Proxy models allow sorting, filtering, modifying, transforming, and augmenting existing models without changing the original model. Instead of building complicated model classes with many options, you can simplify implementation and separate concerns using proxy models.

This video gives you my top seven shortcuts in Qt Creator that help me save hours (OK, maybe just minutes) every single day, but, much more importantly, ensures I stay focused on whatever problem I'm solving right now.

JesperKjaerPedersen

Jesper K. Pedersen

HR Director / COO