Results 1 to 3 of 3

Thread: QTranslator and loading only if program is running under Qt Creator

  1. #1
    Join Date
    Oct 2010
    Location
    Poland
    Posts
    26
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question QTranslator and loading only if program is running under Qt Creator

    I have a problem. In Qt Creator I can load another language by QTranslator.load() (it's return true), but when I run program outside Qt Creator I always get false when I'm making load method. What I should make to solve this problem?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QTranslator and loading only if program is running under Qt Creator

    You should not use relative paths to translation files.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2010
    Location
    Poland
    Posts
    26
    Thanks
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTranslator and loading only if program is running under Qt Creator

    Thanks. Adding a directory which I recived from QApplication::applicationDirPath() solves problem.

Similar Threads

  1. Replies: 5
    Last Post: 18th June 2010, 21:13
  2. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 18:05
  3. Qt Creator - problem loading project
    By Ferric in forum Newbie
    Replies: 1
    Last Post: 7th January 2010, 22:25
  4. Running app from within Creator
    By rbp in forum Qt Tools
    Replies: 2
    Last Post: 2nd October 2009, 00:51
  5. Replies: 1
    Last Post: 17th May 2006, 00:23

Tags for this Thread

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.