migrated from Qt4 to Qt5.