Example of Java to C++ communication in Qt.