How do I get the year only out of a qdate query? A code snippet would be very helpful.

the reference to http://doc.qt.io/qt-5/qdatetime.html#toTime_t wasn't particularly helpful.

Thanks for any help