How to use structures in QT?