You can either create an image with a java library or call a webservice like
https://api.qrserver.com/v1/create-qr-code/?size=150x150&data=www.google.com
last one may be stored in a filedocument with community commons StoreURLToFiledocument or directly displayed on a screen.