The function declaration:
QList<QStringList> select
(QString
& from, QString
& where,
QStringList* what
=0);
QList<QStringList> select(QString& from, QString& where, QStringList* what=0);
To copy to clipboard, switch view to plain text mode
How I call it:
QList<QStringList> dirs
= svh
->select
("dirs",
QString().
setNum(dir
->getId
()));
QList<QStringList> dirs = svh->select("dirs", QString().setNum(dir->getId()));
To copy to clipboard, switch view to plain text mode
The Error I get:
/home/finn/client_gallery/dirparser.cpp:24: error: no matching function for call to ‘SqlViaHttp::select(const char [5], QString&)’
/home/finn/client_gallery/dirparser.cpp:24: error: no matching function for call to ‘SqlViaHttp::select(const char [5], QString&)’
To copy to clipboard, switch view to plain text mode
//EDIT:
Ahh, ok, I know so the solution.
I have to use QString instead of QString& in the Declaration.
Why is that?
Bookmarks