Showing items from Posts

Blending colors in Qt

I found myself in need of blending two QColors in Qt using an alpha ratio. As of the time of writing this post the Qt library does not provide this feature. However, it is fairly easy to create such a function yourself. /** * @brief Blend two colors. * @param color1 One of the colors to be blended.

Continue Reading

Disabling Touchscreen in Windows 8.1

If you happen to have a convertible notebook that features a digitalizer pen input such as the Lenovo Thinkpad Yoga you will find out that it can be rather annoying to write with these things using the pen. The touchscreen that works without the pen (finger touch input) is disabled as soon as the …

Continue Reading