I've changed the second output to
Qt Code:
  1. qDebug() << "d2=" << d2 << ", d2.isValid=" << d2.isValid();
To copy to clipboard, switch view to plain text mode 
and the output is
Qt Code:
  1. d2= QDateTime(2016-09-05 12:25:39.000 CEST Qt::TimeSpec(LocalTime)) , d2.isValid= true
To copy to clipboard, switch view to plain text mode 

Cheers,
_