Found the answer: http://www.ranorex.com/support/user-guide-20/qt-accessible-plugin.html
http://doc.qt.io/archives/4.3/accessible.html
Exactly what is needed to automate a UI. Will then work with any UI automation software, which I've now learned apparently uses the accessibility API.