Results 1 to 3 of 3

Thread: lrelease - how to specify qm-file in project file

  1. #1
    Join Date
    Aug 2008
    Posts
    50
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default lrelease - how to specify qm-file in project file

    Hello.
    The QM file format is a compact binary format that is used by the localized application.
    How can I specify QM file path in a .pro Qt project file? Is it possible?

  2. #2
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    20
    Thanked 28 Times in 27 Posts

    Default Re: lrelease - how to specify qm-file in project file

    Can't you add the qm file to your resource and use QTranslator::load? or #define path in some file in application? Why only in .pro?

  3. #3
    Join Date
    Aug 2008
    Posts
    50
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default Re: lrelease - how to specify qm-file in project file

    Quote Originally Posted by pkj View Post
    Can't you add the qm file to your resource and use QTranslator::load? or #define path in some file in application? Why only in .pro?
    Sorry, I asked the wrong(inaccurate) question.

    I use command:
    lrelease myproject.pro
    and I want lrelease to generate .qm file in specified path defined in .pro file.

Similar Threads

  1. How can I add a lib file to my project?
    By ehsanTC in forum Newbie
    Replies: 0
    Last Post: 20th April 2011, 12:49
  2. Project file to compile c++ file
    By hojoff79 in forum Newbie
    Replies: 1
    Last Post: 9th March 2011, 18:43
  3. Replies: 3
    Last Post: 3rd August 2010, 14:12
  4. Replies: 4
    Last Post: 18th December 2009, 19:55
  5. Replies: 1
    Last Post: 4th December 2009, 00:34

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
  •  
Qt is a trademark of The Qt Company.