What's inside a Wi-Fi QR code
The code holds a short line of text in a standard format, WIFI:T:WPA;S:network;P:password;;, that iPhone and Android cameras recognise. Scanning shows a Join network prompt; nothing connects until the person taps it.
Because the password is inside the code, anyone who can photograph the code can join. Put it where only guests can see it, not in a front window.