In Brazil the government has its own app, through which you can produce both your driver's license (it's a national license) and the registration for you vehicle when required. A QR Code is generated along with a fac-simile of the paper-version of the document.