hi as i am new to qt ...but from c/c++ background i know how to typecast from one type to another
but here i am seriously facing problem in this
eg for this code
QString s;
i cant use cin>>s
cout<<s
how to convert one no to string or string to corresponding integer.....................
i am really confused
i have a code
int a;
string b,c;
cin>>a>>b>>c
QSqlQuery q;
q.exec("insert into student values("+a+","+b+","+c")");
it was giving error of some type
i suppose it was due to wrong types
what is the solution to my problem please help ??
Bookmarks