Connect QML to C++ with signals and slots.