Use different strategies for Qt5 importing.