Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.7.0
-
None
-
Cocoa only
-
-
ac4474900c59d6d17d12f10dae154117af757b46
Description
QFileDialog on Mac can return a decomposed unicode string when a file with non ascii characters is selected.
To workaround this in your code, then do:
QString str = getOpenFileName(); str = str.normalized(QString::NormalizationForm_C);
Attachments
For Gerrit Dashboard: QTBUG-14787 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
51122,1 | Add a means to normalize the string when calling QCFString::toQString() | dev | qt/qtbase | Status: ABANDONED | -1 | 0 |
52792,2 | Call QString::normalized when it is constructed via the native API | stable | qt/qtbase | Status: MERGED | +2 | 0 |