Showing 1 result
EngineeringIcon ChevronBack-end

How to Get Rounded Corner Shapes in C++ Using Bezier Curves and QPainter: A Step-by-Step Guide

by Bojan Kverh

The current trend in graphic design is to use a lot of rounded corners in all sorts of shapes. We can observe this on many web pages, mobile devices, and desktop applications, as rounded corners make the user interface feel smoother and nicer. However, what if we have to generate rounded corners on the fly, and we cannot preload it from an image? In this article, Toptal Freelance Software Engineer Bojan Kverh guides us in a step-by-step tutorial on how to develop a simple class in C++ that can turn a complex polygon into a shape with rounded corners using Bezier curves and QPainter.

10 minute readContinue Reading

Join the Toptal® community.