Support both versions of Qt