I never made the lounge in DOH but any airline lounge I've been in before takes your boarding pass to scan and verify entry permission and writes the gate on it if not already there. Time will be there already, that's why I suspected irrops may have come into play. If I remember rightly, both the QR app and my mobile boarding pass also showed the gate long before I would have been near the lounge.