Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
QMap key (QString) with Space
inforathinam last edited by inforathinam
I have created a QMap as follows:
When i insert "[TP_1::a_33 aa ff]" as key, it is taking only "TP_1::a_33" as key.
Can someone tell me space is not allowed in the key?
Please show some code, especially how you create and insert the key.
inforathinam last edited by
QString testname = "[TP_1::a_33 aa ff]";
this code works, at least in Qt 5.6.
Maybe your source file itself has some strange encoding?
Did you compile Qt yourself?
How does the string look like before inserting it into the hash?
@inforathinam How do you know that only the part before blank is inserted?