Qt validator sample program