Fixed the refresh problem under Qt5!