CptAJ
CptAJ

Reputation: 1166

Do the Qt database modules support remote databases through a network connection?

I'm profiling some APIs to see which one is suitable for this project.

I want my Qt app to connect to a database over an internet connection. Can Qt do this with the client application alone or do I need to write a server app to sit on the database server and transact the queries?

Upvotes: 0

Views: 884

Answers (1)

Alex Martelli
Alex Martelli

Reputation: 882351

You can perfectly well connect to databases over TCP/IP as long as the database engine supports that (most do!). See the example in the docs, it has a db.setHostName("acidalia"); to connect to a PostgreSQL database on that host...

Upvotes: 2

Related Questions