Difference between QString and std::string
General and Desktop
3
Posts
2
Posters
1.6k
Views
-
wrote on 12 Mar 2020, 14:34 last edited by
Hi, I wanted to know what is the difference between QString and std::string. I understood std::string as char* and QString uses linked list concept to store strings. Is am I right?
-
Hi, I wanted to know what is the difference between QString and std::string. I understood std::string as char* and QString uses linked list concept to store strings. Is am I right?
@QtFranchise said in Difference between QString and std::string:
QString uses linked list
For sure not, would be quite inefficient. Check this: https://code.woboq.org/qt5/include/qt/QtCore/qstringliteral.h.html#QStringData
Take a look at https://wiki.qt.io/QString -
wrote on 14 Mar 2020, 04:20 last edited by
Ok got it, thanks
1/3