Re: SQL integration in Qt
Hi, here are a bunch of examples using Qt and SQL databases: https://doc.qt.io/qt-5/examples-sql.html.
If you are stuck with a specific problem please post some relevant code.
Ginsengelf
Re: SQL integration in Qt
Quote:
Originally Posted by
Ginsengelf
Quote:
Originally Posted by
Ginsengelf
Hi Ginsengelf,
Thanks for the suggestion. Yes, I have tried some of these examples before, but I am unable to get any output on my screen. For example; I tried the first example :
https://doc.qt.io/qt-5/qtsql-books-example.html
I couldn't find any output on my screen and my application output flashed this message:
The process failed to start. Either the invoked program "D:file_name.exe" is missing, or you may have insufficient permissions to invoke the program.
I have not deleted any file from that folder in the location. What does this error indicate? Can you suggest ways to make it work?
Thanks in advance!
Added after 1 17 minutes:
Hi Ginsengelf,
From the examples in your post https://doc.qt.io/qt-5/examples-sql.html., I found that only .cpp and .pro files are given.For example, check the below one.
https://doc.qt.io/qt-5/qtsql-tablemodel-example.html
Is it by default expected for us to complete the remaining files for its design?
Thanks in advance!
Re: SQL integration in Qt
The tablemodel example is part of other examples using common files. You should check the parent directory for file connection.h or checkout the whole qtbase project. Also learn how Qt projects are organized.