change frame to qt5

qt5 comes with the support of core profile on mac os, which is nice...