Add a QR/1D code to your project
Drag and drop the QR/1D Code Widget onto your project
Go to Properties -> Options
Select "code type" between QR or barcode
Then for QR, select the action that will happen when the user will scan it or for barcode put the ID