Implement open file in the applicatoin

I refactor codes in the QdotWindow classs to implement the feature that open file in the application.