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. Qt Examples in Different Directory
Forum Updated to NodeBB v4.3 + New Features

Qt Examples in Different Directory

Scheduled Pinned Locked Moved Installation and Deployment
6 Posts 2 Posters 1.8k 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.
  • B Offline
    B Offline
    br1ghtch1p
    wrote on last edited by
    #1

    I have Qt 4.8 version installed from Linux repository which was installed in the default usr/bin. I also installed the latest version 5.3 via the SDK which resides in the /opt directory. However when I use the new QtCreator, the demos and examples on the Welcome screen still shows the set from the old 4.8 version. How can I have QtCreator point to the new set of examples residing in /opt?

    1 Reply Last reply
    0
    • dheerendraD Offline
      dheerendraD Offline
      dheerendra
      Qt Champions 2022
      wrote on last edited by
      #2

      Can u try launching qt creator from one present in 5.3 directory ? I suspect that u may be still opening old qt creator.

      Dheerendra
      @Community Service
      Certified Qt Specialist
      http://www.pthinks.com

      1 Reply Last reply
      0
      • B Offline
        B Offline
        br1ghtch1p
        wrote on last edited by
        #3

        I can confirm I'm using the newer 5.3 QtCreator. I was able to update my qmake to default to the newer version. I just can't find a way for the Welcome screen to point to the new set of examples.

        1 Reply Last reply
        0
        • dheerendraD Offline
          dheerendraD Offline
          dheerendra
          Qt Champions 2022
          wrote on last edited by
          #4

          See if you can fine qt.conf in bin directory of your qt installation and try to change the path like this.

          Prefix=..
          Examples=../../Examples/Qt-5.3
          Documentation=../../Docs/Qt-5.3

          Dheerendra
          @Community Service
          Certified Qt Specialist
          http://www.pthinks.com

          1 Reply Last reply
          0
          • B Offline
            B Offline
            br1ghtch1p
            wrote on last edited by
            #5

            I found qt,conf and changed the paths as suggested but still wouldn't find it. My suspicion is it won't be changeable partly because of qtdemo. The old examples are built and precompiled for the qtdemo app and somehow all examples default to its content. But any other suggestion is appreciated.

            1 Reply Last reply
            0
            • B Offline
              B Offline
              br1ghtch1p
              wrote on last edited by
              #6

              I applied a radical approach. I deleted and reinstalled Qt 5.3 and the new examples are properly showing now. What more, the new install automatically produced a qt.conf file in the bin directory in which the above paths were automatically added.

              I can happily close this thread and thanks Dheerendra for your help.

              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