There's nothing built into the API itself. However, ArcGIS as a whole has a concept of Global IDs, which you can create before publishing the service, and then Global IDs will be auto generated for each new feature added - Add Global IDs—Help | ArcGIS for Desktop
If you want to do it yourself, then the Qt class you mention should do the trick.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.