Fix bugs on Qt5.

Add ignore file.