I am looking to develop a c++ application that interacts with an online sql database. Could someone point me in the right direction on creating a database and code to connect to it from my app?
So this just provides access to a DB - that is you write your app with all the forms etc in Qt. You mentioned you want to make you own database as well?
There are a couple of those that come to mind, probably others as well :
MySQL
PostgreSQL
MySQL is probably the easier, and more widely used by web apps (so I have heard).
PostGreSQL is an enterprise level Object-Relational DBMS with all kinds of capabilities & features.