The Viking Blog

Read our blog for inspiration from Viking Software’s expert insights.

Git Repositories

Sometimes you want your files in different Git repositories. This is not only possible, it’s surprisingly easy if you follow this guide.

Gradients

The the description and code behind a tool that helps generating the gradient C++ code out of a raster image.

Scripting Advice

Scripting is a great tool in many applications. This blog is about some of the generic issues involved in adding scripting to your application.

Canonical Locale

Sometimes you need a fixed locale.

ShootABug

For many years, I have used a small class called ShootABug. This is used to debug parts of the user interface of Qt applications.

C++ Templates

The object orientation guys have pretty much won the battle. So much, that when something doesn’t fit in a neat OO inheritance tree, it can’t be done.

Sourcecode tree

One of the questions I often get from companies that hire me to help them in their first project with Qt, is how to structure the source tree.

Ctrl Enter

A simple and clean solution to using a QAction and set a keyboard shortcut to handle Ctrl + Return in text edits.

When debugging XML code, you often wonder about the contents of a subtree. To view the contents of a subtree, you can use this simple function.