
Originally Posted by
wysota
No, I don't.
Yes you do, you say write function and then We don't need that
If fellow programmers want to shoot themselves into their feet, they take a gun and pull the trigger.
What is the point of this edit??
And I really have no idea why you'd want that in the first place.
I want to set datetime format once, in one place, so that every form, widget, edit... that displays datetime uses that format, I dont want to go to every file in the project and search for datetime usage and change functions, i dont want to go to every model based view i created long time ago, and implement custom datetime delegate. QLocale "almost" does what i need, i create
int main(int argc, char *argv[]){
...
int main(int argc, char *argv[]){
QLocale locale(QLocale::Polish, QLocale::Poland);
QLocale::setDefault(locale);
...
To copy to clipboard, switch view to plain text mode
and it afects every datetime view, but my country format is wrong, and even if it was correct, i would like to tune it.
If you can't or won't help, please dont comment at all
Write and use a function that does that.
comment like this isn't helpfull.
Bookmarks