Compatibility with QT5