Welcome to the community, @tranhungminh! If your QR code has a unique number it should be able to capture it while collecting data.
As for your other query:
Please be informed that you should be able to handle longitudinal data in KoBoToolbox by using the Dynamic Data Attachment feature as outlined in our support article: