Results 1 to 3 of 3

Thread: Porting Win32 api to Qt

  1. #1
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Porting Win32 api to Qt

    I am trying to port an Application written using win32 api to Qt. I am seeking way to port the string tables in the resource file. The string table contains the error messages that needs to popped up.

    I had initially thought of writing a Qt class which would hold all the strings that needs to be translated, mapped against its message id and then run the linguist. The class would essential return me the string for the id.

    Is there a better way. maybe using the Qt resource system that I am over-looking ... ?
    We can't solve problems by using the same kind of thinking we used when we created them

  2. #2
    Join Date
    Jan 2006
    Location
    Bremen, Germany
    Posts
    554
    Thanked 86 Times in 81 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Win32 api to Qt

    Why do you want to have a global place with all error messages at all?
    Just put them into your code and let do linguist the rest.

  3. #3
    Join Date
    Jan 2006
    Location
    Kerala
    Posts
    371
    Thanks
    76
    Thanked 37 Times in 32 Posts
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Porting Win32 api to Qt

    Ya ... that is somewhat similar to what I have done.
    I have created a class Which will hold the Messages, And these strings are tr-ed.

    Now, Why in a class is because I want the strings to be returned for the Message Id I have
    We can't solve problems by using the same kind of thinking we used when we created them

Similar Threads

  1. win32 platform macros?
    By gfunk in forum Qt Programming
    Replies: 1
    Last Post: 5th September 2007, 20:02
  2. Common question about porting Qt3 to Qt4
    By zlatko in forum Qt Programming
    Replies: 4
    Last Post: 21st February 2007, 10:57
  3. Win32 qmake: building a static library
    By Amanda in forum Qt Programming
    Replies: 5
    Last Post: 8th November 2006, 19:32
  4. Problem porting Kivio MP on win32 from Qt 3 to Qt 4
    By Amanda in forum Qt Programming
    Replies: 2
    Last Post: 26th October 2006, 19:40
  5. QDialog in the taskbar (Win32)
    By Arthur in forum Qt Programming
    Replies: 4
    Last Post: 28th February 2006, 16:34

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.