Are you familiar with C++ ??
Its the same way in Qt.