Accessing SQl Database in Qt with Table View
-
Hi All,
I was trying this sample program TableEditor ; Table Editor . I am not clear about the first line of the .pro files. Do we have to include the absolute path of the SQL Database in the HEADERS of the .pro file?
-
Hi All,
I was trying this sample program TableEditor ; Table Editor . I am not clear about the first line of the .pro files. Do we have to include the absolute path of the SQL Database in the HEADERS of the .pro file?
@Swati777999
Don't know what you mean. That.pro
does not have any "path of the SQL Database in the HEADERS of the .pro file".You should not be using examples from Qt 4.8, nor should be using anything from https://het.as.utexas.edu/....
If you really wanted to use this start from https://doc.qt.io/archives/qt-5.6/qtsql-cachedtable-cachedtable-pro.html. However as you can see that is archived as of Qt 5.6,
so whatever it is you should be looking at something else. (EDIT See @VRonin's reponse below, he obviously found it elsewhere! Still remains the fact that you don't want to be using Qt 4 references!) -
@Swati777999
Don't know what you mean. That.pro
does not have any "path of the SQL Database in the HEADERS of the .pro file".You should not be using examples from Qt 4.8, nor should be using anything from https://het.as.utexas.edu/....
If you really wanted to use this start from https://doc.qt.io/archives/qt-5.6/qtsql-cachedtable-cachedtable-pro.html. However as you can see that is archived as of Qt 5.6,
so whatever it is you should be looking at something else. (EDIT See @VRonin's reponse below, he obviously found it elsewhere! Still remains the fact that you don't want to be using Qt 4 references!)@JonB said in Accessing SQl Database in Qt with Table View:
However as you can see that is archived as of Qt 5.6, so whatever it is you should be looking at something else.
Still alive AFAIK: