selenium and qt c++?
You might be able to use json wire protocol to communicate with webdriver server within Qt/C++ application, but consider using some scripting language instead. For example Python is pretty easy to learn and has webdriver bindings.
There is a Webdriver for Qt applications: https://github.com/cisco-open-source/qtwebdriver
- Use a selenium bindings (python, java etc..) to write tests and send command with the wire protocol
- Install the Qtwebdriver on the Qt application side
- Then you can automate you Qt application with selenium tests