TypeScript is way, way too slow to use for desktop applications. People try and, surprise surprise, those applications are slow as shit.
Qt has a C++ backend, so C++ is used. Qt is relatively safe and well designed.