qstring
Qt based addSlashes version equivalent
I just wrote a Qt based php addSlashes function like, I wont to see any improvements, suggestions to it. I am planing to use this function to fill a file with hundred of insert query, to be more speci[详细]
2023-03-04 04:25 分类:问答Object back from pointer
void show(QString *s){ //Here I want to show the value of the QString. } How can I do that?? I\'d be glad if 开发者_开发技巧you could help me.Not sure exactly what you\'re asking - see my comments.[详细]
2023-03-01 16:05 分类:问答switch/case statement in C++ with a QString type
I want to use switch-case in my program but the compiler gives me this error: switch expression of type \'开发者_StackOverflow社区QString\' is illegal[详细]
2023-02-20 16:24 分类:问答Convert QString Unix epoch time to QString standard time
I need 开发者_StackOverflow中文版an elegant C++ function that takes a QString parameter containing the unix time (e.g. 1295874681) and converts it into standard time format (e.g Mon, 24 Jan 2011 13:11[详细]
2023-02-20 07:25 分类:问答QString errors when copying into QMap. Scope issue?
I\'m currently stuck with regards to segfaults (sometimes sigabrts due to bad mallocs) whenever I try add a QString to a QMap as key inside the destructor of QWidget class I have - I think it has some[详细]
2023-02-11 19:48 分类:问答Using QString get strange characters in the output
int a=0; while (a<2) { //infos.stops is point to one array, cal开发者_开发百科led abc[10] output = output + QString::fromStdString(*infos.stops)+ \".\" ;[详细]
2023-02-08 01:20 分类:问答What would be a QString replacement?
For many reasons (low performance, high resource consumption, large shared library size, large executable sizes, and our low end platform) my team consider moving out of Qt.[详细]
2023-01-31 06:52 分类:问答Convert std::string to QString
I\'ve got an std::string content that I know contains UTF-8 data. I want to convert it to a QString. How do I do that, avoiding the from-ASCII con开发者_如何学JAVAversion in Qt?QString::fromStdString([详细]
2023-01-28 18:43 分类:问答Converting QString containing PostgreSQL timestamp to QDateTime
I\'m having trouble with a seemingly very simple problem: I want to get a QDateTime from a QString con开发者_高级运维taining a timestamp. I got the timestamp from PostgreSQL, but it doesn\'t matter. H[详细]
2023-01-28 02:32 分类:问答How to write a QString on several lines?
Do you have a better way to do that ? QString str(\"I am a long long long\" + QString(\"long long long\")[详细]
2023-01-27 02:31 分类:问答