Fix for legacy QT compatibility