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.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-49a0d5d-ff39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-49a0d5d-ff39.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?