Qt equivalent of C++ code

Printable View