Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Installation and Deployment
  4. [solved] How to know where are qt files?
Forum Updated to NodeBB v4.3 + New Features

[solved] How to know where are qt files?

Scheduled Pinned Locked Moved Installation and Deployment
7 Posts 3 Posters 3.3k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    soroush
    wrote on last edited by
    #1

    Hello

    In archlinux with qt 4.7.4 installed, translations are in /usr/share/qt/translation but in Ubuntu 11.10 with same version of Qt, there are in /usr/share/qt4/translation. I don't know where are them in Fedora and other distros. Is there a way to determine where are them?

    1 Reply Last reply
    0
    • L Offline
      L Offline
      lgeyer
      wrote on last edited by
      #2

      qmake -query

      1 Reply Last reply
      0
      • S Offline
        S Offline
        soroush
        wrote on last edited by
        #3

        [quote author="Lukas Geyer" date="1320312420"]qmake -query[/quote]

        So how should I use it in application? Should I call qmake -query in application and grep the result to get QT_INSTALL_TRANSLATIONS ??

        1 Reply Last reply
        0
        • L Offline
          L Offline
          lgeyer
          wrote on last edited by
          #4

          Well, determining the path at runtime is something different. You might take a look at the Qt sources how Qt itself does it.

          1 Reply Last reply
          0
          • S Offline
            S Offline
            soroush
            wrote on last edited by
            #5

            [quote author="Lukas Geyer" date="1320316621"]Well, determining the path at runtime is something different. You might take a look at the Qt sources how Qt itself does it.[/quote]

            Ok, I tried to looking into QApplication. No hope.. code of Qt is really big :-/

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goetz
              wrote on last edited by
              #6

              Use the following call to determine the path to the .qm translation files:

              @
              QLibraryInfo::location(QLibraryInfo::TranslationsPath)
              @

              http://www.catb.org/~esr/faqs/smart-questions.html

              1 Reply Last reply
              0
              • S Offline
                S Offline
                soroush
                wrote on last edited by
                #7

                [quote author="Volker" date="1320363814"]Use the following call to determine the path to the .qm translation files:

                @
                QLibraryInfo::location(QLibraryInfo::TranslationsPath)
                @[/quote]

                Thanks a lot.

                1 Reply Last reply
                0

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved