Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

"Could not create collator: 4" warning (what does it mean?)



  • Hello,

    I sometimes see this warning in my console when I run my application:

    // normal application logs
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    Could not create collator: 4
    // normal application logs
    

    I'm not exactly sure when this is printed. Has anyone else experienced this? What is the reason? Looking at the source code I see this is a warning in qcollator_icu.cpp:QCollatorPrivate::init(). (I build Qt with --icu=yes if that matters)

    Edit: for example this happens when I navigate in an opened file dialog.


  • Lifetime Qt Champion

    Hi,

    @Puya said in "Could not create collator: 4" warning (what does it mean?):

    Could not create collator: 4

    Based on that stack overflow thread, there might be an issue with your locale.


Log in to reply