gui implementation with qt example