How to Convert QString to Wide C String (wchar_t *)

The same as standard C String, for this also you can go through standard C++ as shown below:

Let’s say you have a QString, like this:

QString s = "www.amin-ahmadi.com";

First convert it to std::wstring and then use its c_str method, like this:

s.toStdWString().c_str()


How to convert QString to C String (char *)

The best solution for this would be to go through standard C++ and it means this:

Let’s say you have a QString, like this:

QString s = "www.amin-ahmadi.com";

First convert it to std::string and then use its c_str method, like this:

s.toStdString().c_str()

Cardiograph v1.0 Released!

Today I released the first version of Cardiograph program. It is a program that allows you to measure (monitor) your heart rate using your computer’s webcam. It is designed to be simple and accurate. Currently only Windows is supported but hopefully more operating systems will be supported in the future.

Cardiograph

Head to Cardiograph Official Page to download and try it for yourself.



Below are screenshots of Cardiograph in action:

Let me know if you face any issues.