Google has recently expanded Quick Share file sharing support with a new method. This feature has been tested since December 2024. It is by using QR codes, where users do not need to save someone's details as a contact and do not need to turn on the sharing feature for everyone.
When you want to share any file, after pressing the Quick Share button and searching for nearby devices there will be a Use QR code button. Just press this button, any device can scan and get the same file.
This feature is not a new thing because on Samsung devices, Quick Share sharing support with QR codes is already supported. It works with more or less the same concept, where anyone who has access to this code can directly receive file sharing.
For now, this feature is being rolled out to everyone in stages. You will receive this feature in a Google Play Services update soon.