qr code in writer by macro

How do I create a QR-code in a writer-document with a macro?

I tried to record a macro, but this code opens a dialog box and asks for details. I want the macro to run completely automatic. So: what are the parameters to set?

Not implemented yet, look: https://bugs.documentfoundation.org/show_bug.cgi?id=128779