You can use the page property ‘url’. Give it a string value ending with /{Id}
See https://docs.mendix.com/refguide/page-properties/#url for detail-information on that.
Generate the QR-code on any publicly visible page. Add a dataview containing your object as page parameter. Add a widget ‘QR-code’ from marketplace module ‘QR code widget’, assign it your object’s GUID (use community commons ‘getGUID to get that).
I am facing the same problem.
Maybe you can help me.
getGUID has an integer as return value. Generate QR requires a string. How did you solve this?