QDateTimeEdit :: void setMaximumDate ( const QDate & max )
This will do what you want