How to use QXmppRegisterIq for user Registration in QXmpp

now there is a requirement to write XMPP communication programs on Ubuntu using QT, using QXmpp as the library. Now I need to register my new user on the server, and then log in with the registered user. I know I use QXmppRegisterIq, to register, but I"m not sure how to implement the process I just described, and there are few materials on the Internet. I hope that those who have done or know about it will give us some guidance, thank you very much.

Menu