Adapt to Qt5 and Creator >=3.0