Results 1 to 7 of 7

Thread: tr() and static fields

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #4
    Join Date
    Jan 2006
    Posts
    39
    Thanks
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: tr() and static fields

    I'm attaching an example that shows a couple different tries at having translatable text in a class of static variables. The only text I can get to show up translated is the "maybe" string where the literal text to translate is right in the setText() call.

    The one I'd really like to get to work is the "No" string where the QString and tr call are in the strings class.

    Any help is greatly appreciated.

    Thanks.
    Derek
    Attached Files Attached Files

Similar Threads

  1. Replies: 16
    Last Post: 23rd May 2008, 10:12
  2. Qt4 MacOSX UB Xcode and a static Qt build?
    By kuroyume0161 in forum Installation and Deployment
    Replies: 15
    Last Post: 18th March 2007, 08:10
  3. Replies: 2
    Last Post: 16th March 2007, 09:04
  4. Accessing to a static variable from the same class
    By xgoan in forum General Programming
    Replies: 6
    Last Post: 5th March 2007, 10:50
  5. Replies: 4
    Last Post: 14th February 2006, 21:35

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.