I like to cook. And sometimes store my recipes. Over the years I have tried KRecipes, kept my recipes in BasKet notes, in KJots notes, in more or less random word processor documents. I liked the free form entering recipes…
I like to cook. And sometimes store my recipes. Over the years I have tried KRecipes, kept my recipes in BasKet notes, in KJots notes, in more or less random word processor documents. I liked the free form entering recipes…
The other day, some user of Extra CMake Modules (A collection of utilities and find modules created by KDE), asked if there was an easy way to query cmake for wherever the KDEInstallDirs points to (KDEInstallDirs is a set of…
I recently did a short tongue-in-cheek blog post about Qt and modern C++. In the comments, people discovered that several compilers effectively can optimize std::make_unique<>().release() to a simple new statement, which was kind of a surprise to me. I have…
1 |
layout->addWidget(std::make_unique<QLabel>().release()); |
– ’cause raw new’s are bad.
Playing with emojis At some point, I needed to copy paste emojis, but couldn’t find a good way to do it. So what does a good hacker do? Scratch an own itch. As I wrote about in the past, all…
A couple of years ago, I made a blog post, KDE makes Qt, with data about which percentage of Qt contributions came from people starting in KDE. Basically, how many Qt contributions are made by people who used KDE as…
After a bit of a debugging session, I ended up looking at some code in a large project
1 2 3 4 5 |
m_foo = std::make_shared<SomeQObject>(); /* plenty of lines and function boundaries left out */ (void)connect(m_foo.get(), &SomeQObject::someSignal, [m_foo]() { /* */ }); |
The connection gets removed when the pointer inside m_foo gets de-allocated by the shared_ptr. But the connection target is a lambda…
The problem So. I was stuck with a container of tuples that I wanted to see in a Qt view (QTableView, QtQuick ListView or similar). So how to do that? Another problem: I haven’t been doing fun things with templates…
This week I have been gathered with 38 KDE people in Randa, Switzerland. Randa is a place in a valley in the middle of the Alps close to various peaks like Matterhorn. It has been a week of intense hacking,…
Sitting on Lake Zurich and reflecting over things was a great way to get started. http://manifesta.org/2015/11/pavillon-of-reflections-for-zurich-in-2016/ After spending a bit of time in a train, I climbed part of a mountain together with Adriaan – up to the snow where…
Recent Comments