Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    [SOLVED] Qt Installed Directory????

    General and Desktop
    2
    3
    707
    Loading More Posts
    • 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.
    • D
      delanov last edited by

      Qt 4.7.2 (32 bit) is on my machine and I'm using Qt Creator 2.1.0 to create a Qt Quick application. I want to use the states.png i.e Qt Logo in the application. However, the following given information tells me to copy the Logo to the project directory. The following information also gives a path, however I need a Linux path to where Qt installed.

      To use the states.png image in your application, you must copy it to the project directory from the examples directory in the Qt installation directory. For example: C:\QtSDK\Examples\4.7\declarative\animation\states. The image appears in the Resources pane. You can also use any other image or a QML element, instead.

      Will appreciate your help.

      1 Reply Last reply Reply Quote 0
      • SGaist
        SGaist Lifetime Qt Champion last edited by

        Hi and welcome to devnet,

        It depends whether your Qt comes from the system (highly unlikely otherwise you are running a really really outdated OS) or an installation from source. If the later, you can simply look in the examples folder in Qt's sources.

        On a side note, unless you are locked to 4.7.2, you should really consider to update to at least 4.8.6 or 5.3

        Interested in AI ? www.idiap.ch
        Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply Reply Quote 0
        • D
          delanov last edited by

          [quote author="SGaist" date="1402775591"]Hi and welcome to devnet,

          It depends whether your Qt comes from the system (highly unlikely otherwise you are running a really really outdated OS) or an installation from source. If the later, you can simply look in the examples folder in Qt's sources.

          On a side note, unless you are locked to 4.7.2, you should really consider to update to at least 4.8.6 or 5.3[/quote]

          Thanks for your reply SGaist.

          Yevgenko 22 July 2012 posted the following path:

          /usr/lib/qt4/examples/declarative/animation/states/states.png.

          Using The Gimp and Yevgenko's path I saved the Qt Logo to my Pictures directory.

          Yes my OS is quite out dated (Mint 11 Katya), however I like it and it serves the purpose.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post