Hi there,
i have problem with QLocale.
When i try to set other locale:
Output should be 31 but is 90 (my locale). Why?Qt Code:
To copy to clipboard, switch view to plain text mode
Hi there,
i have problem with QLocale.
When i try to set other locale:
Output should be 31 but is 90 (my locale). Why?Qt Code:
To copy to clipboard, switch view to plain text mode
You do not set the system locale when using the setDefault function, only the locale for your program (process)
Since setDefault works on the current process, that should function correctly. The only thing you can't do is change the locale of other applications.
Try the following:
Qt Code:
myDate.fromString(..., Qt::DefaultLocaleShortDate);To copy to clipboard, switch view to plain text mode
how can you change the locale from a qml application?
Bookmarks