Compatibility with Qt5.