RSSAmplifier

Blog

arno's blog

just another blog

arnorehn.deRSS feed ↗10 posts

Latest posts

QFuture ❤️ C++ coroutines

Ever since C++20 introduced coroutine support, I was wondering how this could integrate with Qt. Apparently I wasn t the only one: before long, QCoro popped up. A really cool library! But it doesn t use the existing future and promise types in Qt; instead it introduces its own types and mechanisms to support coroutines. I kept [ ]

QtGamepad ported to Qt 6

For a project of mine I need gamepad support. In the past, I ve happily used QtGamepad, but that has not been ported to Qt 6. It s not dead, but Andy (QtGamepad s maintainer) wants to do some re-architecting for a Qt 6 release. I need QtGamepad now, however, so I ve ported it myself. It s not a [ ]

Pitfalls of lambda capture initialization

Recently, I ve stumbled across some behavior of C++ lambda captures that has, initially, made absolutely no sense to me. Apparently, I wasn t alone with this, because it has resulted in a memory leak in QtFuture::whenAll() and QtFuture::whenAny() (now fixed; more on that further down). I find the corner cases of C++ quite interesting, so I [ ]

New client languages for Qt WebChannel

At the company I m working at, we re employing Qt WebChannel for remote access to some of our software. Qt WebChannel was originally designed for interfacing with JavaScript clients, but it s actually very well suited to interface with any kind of dynamic language. We ve created client libraries for a few important languages with as few dependencies [ ]

QRPC: A Qt remoting library

This project of mine has been around for quite a while already. I ve never much publicised it, however, and for the past year the code hasn t seen any changes (until a few days ago, anyway). But related to my current job, I ve found a new need for remote procedure calls, so I came back to [ ]

QuickPlot: A collection of native QtQuick plotting items

For a project at university I recently needed a plotting widget to display some data. Naturally, Qwt came to my mind. I ve already been using it in a number of other projects and it works great. The one drawback, however: The project was intended to be run on the Raspberry Pi. Now the X-Server on the R-Pi [ ]

Connecting C++11 lambdas to Qt4 Signals with libffi (now portable)

I know that this is probably not very useful, considering that it s not portable and with Qt5 about to be released in June, but I found it interesting to experiment with the new language features and libffi. The result is a class which lets you connect any function pointer or lambda, with or without bound variables, [ ]

Java bindings?

Since the C# bindings are apparently not really used/wanted by anyone (except for some Windows people but that s really not my main development platform) I thought that maybe some more people are interested in Java bindings. There was a poll on kdedevelopers.org two years ago that showed Java ahead of Ruby and C# [ ]

And the bindings keep rocking: Writing Ruby KIO slaves

It seems like I got into a hacking frenzy after yesterday s Ruby plugins for Kate. Today I sat down and took another look at the KRubyPluginFactory to implement KIO slave support. So here it is, our very first Ruby Hello World KIO slave: # kate: space-indent on; indent-width 2; require 'korundum4' require 'kio' module Rubytest [ ]

Why KDE bindings simply rock (or: Creating our first Ruby plugin for Kate)

Akademy really speeds up development and communication between developers: Yesterday I was poked by Milian Wolff and he told me how many people want to write Kate plugins in languages other than C++ and ECMAScript and how he always told them that s not possible and probably a huge amount of work to get working. Well, [ ]