On Fri, Sep 30, 2011 at 2:54 PM, André Pönitz <[email protected]> wrote: > I have this nagging gut feeling that it would be better for performance if > these would take QByteArray keys instead. If someone has the desparate wish > to use more than 7 bits for his key strings (I certainly don't), the > convention > could just be that the encoding is implicitly assumed to be UTF-8.
+1 When I design library APIs, I tend to distinguish QByteArray vs. QString as application-internal vs. user-visible strings. So QByteArray is used mostly as a key in QMap/QHash and semantically similar interfaces. If users are properly educated about this difference in semantics between QByteArray and QString, I consider it to be very powerful. Of course that's not an option for Qt 5 because it would be a quite invasive change, and would slow down ported applications which store QString keys elsewhere which need to be converted to QByteArray. Greetings Stefan _______________________________________________ Qt5-feedback mailing list [email protected] http://lists.qt.nokia.com/mailman/listinfo/qt5-feedback
