Mailinglist Archive: opensuse-programming (42 mails)

< Previous Next >
Re: [suse-programming-e] An error occurred while accessing the database
  • From: Tony Bloomfield <tonyb.lx@xxxxxxxxxxxxxx>
  • Date: Wed, 26 May 2004 13:39:47 +0000
  • Message-id: <200405261339.47929.tonyb.lx@xxxxxxxxxxxxxx>
On Tuesday 25 May 2004 13:40, Prabu Subroto wrote:
> Dear my friends...
> I move forward to getting to know more about qt in
> database application development.
> I tried to make a very simple database application
> qith QTable.
> I have made the database connection successfully. I
> found no error. If I click on "connect" it can connect
> successfully because the connection name move to the
> left hand column. The documentation in help menu said
> it is so.

You need to include code in main.cpp to connect to the database at run-time.

In designer, press F1 which should bring up the Qt documentation. Then select
Home, Modules, SQL for information on how to use databases, including sample
connect code.


< Previous Next >