Right now this is purely hypothetical (I hope this doesn't cause the question to be closed. This question has the potential to help visitors and I want to do this.) because I haven't used a true programming language like C++ in almost two years. However, I'm getting restarted with C++ and I've always been a person to jump straight into projects.

I have my website, www.gracepensacola.com, and I'm working on designing some forms to receive user information. The information will be stored in our MySQL database. 

I need my C++ program to connect to the database, retrieve the required information, and then display it using the QT library. (I'm just starting with C++ GUI).

I have no clue about the steps I have to take to make this. I haven't seen anything on C++ contacting MySQL.