Qt Designer + mySql connection error
Hi,
I'm using Qt Designer 3 and I'm writing an application that will connect to mysql database. The problem is, I'm unable to set up a database connection with Qt Designer. The values I fill for Project->Database connections are as follow: Code:
connection name: default I've never used Qt Designer before...I almost always write the hard-code, I like it that way. So, what do I do now? I've followed the exact steps given in the manual but I screwed up...any help will be appreciated. Thanks in advance. |
Qt designer with MySQL
Hello,
The drivers QPSQL3 are for PostgreSQL, not MySQL. I have been using Qt designer for a while now against a PostgreSQL database with no problems. I then converted my database to MySQL and I haven't been able to connect to that with Qt. I can connect through the designer, but when I compile and run it, I get the cannot connect to database error. I did make sure I downloaded the MySQL driver QMYSQL3. If it wasn't on my system, it wouldn't work through designer, would it? Does anyone have any experience with an issue like this? Perhaps someone can recommend another development environment, as I have other issues with designer as well. The font used to display the code is quite ugly... Thanks... |
All times are GMT -5. The time now is 10:25 PM. |