Results 1 to 5 of 5

Thread: .qm file Call flow

  1. #1
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    1
    Qt products
    Qt3 Qt/Embedded

    Exclamation .qm file Call flow

    Can Any One Please tell me hw is the qm file readed after loading by the Qtranslator,
    As in our project we are having some problem with the font display
    we r using qte3.3.6 as it is the clients requirement.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: .qm file Call flow

    .qm files shouldn't interfere with fonts. Are the fonts OK, if you don't use tr()?

  3. #3
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    1
    Qt products
    Qt3 Qt/Embedded

    Question Call Flow Of .qm Files

    Hii everyone,

    Can anyone plz tell me the call flow of qm file,
    i mean how the qm file is loaded into qtranslator and what happens after that

    Thanks & Regards,
    Gaurav K Singh

  4. #4
    Join Date
    Jun 2007
    Posts
    21
    Thanks
    1
    Qt products
    Qt3 Qt/Embedded

    Default Re: .qm file Call flow

    Quote Originally Posted by jacek View Post
    .qm files shouldn't interfere with fonts. Are the fonts OK, if you don't use tr()?
    Actually i am new to Qt programming and we are using Qt emb v 3.3.6 for development ( as per project requirement). For indian languages some joining character are not displaying on screen.Even though the tr() was used perfectly in the application and Qt source. As far as my understanding goes .qm has binary data for any scripting language.
    I want to know the *.qm file data rectrieve in the Qt emb source code. and data / font display on the embedded device screen. I found the complete flow diagram for rendering the font using the textengine and fontengine. BUT I DOES NOT UNDERSTAND HOW .QM FILE WILL GIVE DATA TO SYSTEM.

  5. #5
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Thanks
    28
    Thanked 976 Times in 912 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: .qm file Call flow

    Quote Originally Posted by Gaurav K SIngh View Post
    BUT I DOES NOT UNDERSTAND HOW .QM FILE WILL GIVE DATA TO SYSTEM.
    OK, but don't shout and please don't start more than one thread on the same problem.

    .qm files contain only translations of the strings that were placed inside QApplication::translate(), QObject::tr(), QT_TR_NOOP() and QT_TRANSLATE_NOOP(). After you load a .qm file into the translator and install that translator in your application, all calls to QApplication::translate() and QObject::tr() will return the translated version of the string. That's all what .qm files do. You can read more about it here.

    If you experience problems with font rendering, most likely they aren't caused by .qm files. Is the text displayed correctly, if you don't use tr()? Also make sure that Qt/E version you have supports the script you want to use.

Similar Threads

  1. qt-3.3.8 fail in scratchbox
    By nass in forum Installation and Deployment
    Replies: 0
    Last Post: 25th May 2007, 16:21
  2. Sending Binary File with QFTP
    By nbkhwjm in forum Newbie
    Replies: 2
    Last Post: 7th March 2007, 19:10
  3. Compiling with Qmake/Make
    By VireX in forum Newbie
    Replies: 25
    Last Post: 22nd February 2007, 06:57
  4. How To Extract A File
    By deekayt in forum General Programming
    Replies: 7
    Last Post: 5th December 2006, 19:27
  5. SQLite-DB in a qrc file
    By Lykurg in forum Qt Programming
    Replies: 5
    Last Post: 31st July 2006, 20:24

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.