A few days ago Marc Mutz, colleague of mine at KDAB and also author in this blog, spotted this function from Qt’s source code (documentation): Apart from the mistake of considering empty strings not uppercase, which can be easily fixed, the loop in the body looks innocent enough. How would we figure out if a […]
C++ Get the RSS Feed
Content related to C++
Fix Qt Creator code highlighting on Windows/MSVC projects how to configure your projects to get code highlighting and code navigation back
Have you ever noticed code highlighting disappearing in Qt Creator for some projects, without any apparent reason? Can’t get Ctrl+Click to work on any class name or function name anymore? Maybe you have ignored it at first, got used to it, and decided it’s just one of those things that just “happen sometimes”; or maybe […]
UiWatchDog: a keepalive monitor for the GUI thread Part of the KDToolBox series
Continuing our blog series about KDToolBox, this time we will discuss UiWatchDog, a keepalive monitor for the GUI thread. Alive? A fundamental rule when writing applications in event-driven UI frameworks such as Qt is: do not ever block the GUI thread! The GUI thread is also usually called the main thread of the application — […]
Using Visual Studio Code for Writing Qt Applications
Software developers like tools, and in particular tools that make them more productive. So in this blog post, I am going to share with you some of the experiences some of us here at KDAB have had using Visual Studio Code for Qt development. Motivation of using Visual Studio Code instead of Qt Creator The […]
KDAB at C++ Russia, Saint Petersburg Oct 31 - Nov 1
C++ Russia is the premier C++ conference in East Europe which alternates between Moscow and Saint Petersburg. The conference lasts for two days starting October 31st. It will be held in the Park Inn by Radisson Pulkovskaya Hotel in the heart of Saint Petersburg. This year, the speaker line-up is quite impressive and includes names […]
KDTableToListProxyModel: a flattening proxy model
With this blog post we are going to kickstart our brand new blog series about KDToolBox. The first class we’re exploring is KDTableToListProxyModel, a table-to-list proxy model. The main use case for KDTableToListProxyModel is exposing tabular models to Qt Quick. Qt Quick has a certain number of “view” elements that only support list models: for […]
Introducing KDToolBox KDAB R&D contribution of useful C++ classes
At KDAB we invest a significant amount of efforts in research and development. We are always looking for new tooling, libraries and utilities that can make our job easier and improve the C++ and Qt ecosystems. Ultimately, the gained knowledge and skills make our customers happier. As part of this process we develop lots of […]
Little Trouble in Big Data – Part 3 Dealing with resource bottlenecks
In the previous two blogs in this series I showed how solving an apparently simple problem about loading a lot of data into RAM using mmap() also turned out to require a solution that improved CPU use across cores. In this blog, I’ll show how we dealt with the bottleneck problems that ensued, and finally, […]
Little Trouble in Big Data – Part 2 improving CPU utilization across cores
In Part 1 of this series we solved the problem of using mmap() to load large set of data into RAM all at once. The catch was that it still took too long. In this blog, I describe how we solve this.
Little Trouble in Big Data – Part 1 how to use mmap() to load a large data set into RAM
We got a call from a bioinformatics group at a European university. The problem appeared simple, how to usemmap() to load a large data set into RAM all at once. OK, no problem I thought...