Create a QDateTime object for the epoch, use epoch.msecsTo(yourDate);

Cheers,
_