Results 1 to 3 of 3

Thread: KGlobal::locale::Warning error...

  1. #1
    Join Date
    Nov 2010
    Location
    Caccamo (PA), Italy
    Posts
    13
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default KGlobal::locale::Warning error...

    Hi to all.
    I work with Linux (Kubuntu 11.04) with italian localization, using QtSDK, ver. 4.7.4, and QtCreator ver. 2.2.0.
    I'm developing an application that use some QFileDialog objects. When I attempt to use one of that functions (getSaveFileName or getOpenFileName) I obtain the following warning:

    KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
    Catching that entry on the web, I found that this problem arise with a problem in the kde-qt integration, but I can't solve it.

    I have some mistake on my configuration. There is anyone that can address me on the right solution?

  2. #2

    Default Re: KGlobal::locale::Warning error...

    Hello,
    did somebody know why this happen?

    I am using ArchLinux with KDE in french and my QFileDialog is in english because of a similar message:
    KGlobal::locale::Warning your global KLocale is being recreated with a valid main component instead of a fake component, this usually means you tried to call i18n related functions before your main component was created. You should not do that since it most likely will not work
    kfilemodule(20742) KSambaSharePrivate::findSmbConf: KSambaShare: Could not find smb.conf!
    This problem happens with other Qt non-KDE applications like Opera.

    Does somebody know a solution?

    Thanks for your help.

  3. #3
    Join Date
    Nov 2010
    Location
    Caccamo (PA), Italy
    Posts
    13
    Thanks
    1
    Qt products
    Qt5
    Platforms
    Unix/X11 Windows Android

    Default Re: KGlobal::locale::Warning error...

    Dear buddy,
    I think that the problem is due to a global variable (type KGlobale) that isn't inizialized from the system. This problem is one KDE bug, that isn't fixed. This fact is reported from various Linux newsgroups in no-programming tasks, so the problem isn't caused from a programming error.

    I verify that this warning occurs when I use, for the 1st time, one object of type QDialog, during programming with QtCreator. While I working in no-programming environment, it doesn't occur.

    If anyone have other information on this problem, I pray him to share his information.

Similar Threads

  1. Replies: 5
    Last Post: 3rd July 2014, 12:46
  2. Error while executing a application - Gtk WARNING
    By augusbas in forum Qt Programming
    Replies: 1
    Last Post: 12th June 2010, 12:25
  3. Replies: 2
    Last Post: 15th February 2010, 06:42
  4. About locale issue
    By xiajingan in forum Qt Programming
    Replies: 3
    Last Post: 26th February 2009, 21:18
  5. Setting locale for the whole app
    By maverick_pol in forum Qt Programming
    Replies: 2
    Last Post: 22nd June 2008, 22:53

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.