Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. When an example project is opened in qtcreator, it gives an option to copy to another location in Linux and Windows 7, but not in Windows 10. How to get that feature in windows 10.
QtWS25 Last Chance

When an example project is opened in qtcreator, it gives an option to copy to another location in Linux and Windows 7, but not in Windows 10. How to get that feature in windows 10.

Scheduled Pinned Locked Moved Solved General and Desktop
9 Posts 4 Posters 1.8k Views
  • 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.
  • G Offline
    G Offline
    gmatbarua
    wrote on last edited by gmatbarua
    #1

    When an example project is opened in latest qtcreator, it gives an option to copy to another location in Linux and Windows 7, but not in Windows 10.
    How to get that feature in windows 10.
    I use non-administrative account in linux and Windows 7. Unfortunately, in Windows 10 it seems administrative account is THE user account. Please help. I don't want to pollute the examples directory with my own edits.

    1 Reply Last reply
    0
    • G Offline
      G Offline
      gmatbarua
      wrote on last edited by
      #2

      No one with Windows 10 and using qtcreator ?

      jsulmJ 1 Reply Last reply
      0
      • G gmatbarua

        No one with Windows 10 and using qtcreator ?

        jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        @gmatbarua You can still copy the examples manually...

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        1 Reply Last reply
        1
        • DiracsbracketD Offline
          DiracsbracketD Offline
          Diracsbracket
          wrote on last edited by
          #4

          Hi
          I'm using Qt Creator on Win10, but didn't know about this copy feature you mention on other platforms...

          However, can't you just make a copy of the complete Examples directory and use that?

          G 1 Reply Last reply
          1
          • DiracsbracketD Diracsbracket

            Hi
            I'm using Qt Creator on Win10, but didn't know about this copy feature you mention on other platforms...

            However, can't you just make a copy of the complete Examples directory and use that?

            G Offline
            G Offline
            gmatbarua
            wrote on last edited by gmatbarua
            #5

            @Diracsbracket Thank you for responding. Sure, I can. If you open the copied project, it will not open the corresponding help document that is opened automatically when we click the example project icons, which in turn opens the example project in default location.

            DiracsbracketD 1 Reply Last reply
            0
            • aha_1980A Offline
              aha_1980A Offline
              aha_1980
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Hi @gmatbarua

              the copy function jumps in if the examples directory is read-only or if you don't have write access to that directory (as for building, you need write access).

              What you could try is to make this directory write protected, maybe Creator then provides the dialog. I've not tested this, but it might be worth a try.

              Qt has to stay free or it will die.

              DiracsbracketD 1 Reply Last reply
              0
              • G gmatbarua

                @Diracsbracket Thank you for responding. Sure, I can. If you open the copied project, it will not open the corresponding help document that is opened automatically when we click the example project icons, which in turn opens the example project in default location.

                DiracsbracketD Offline
                DiracsbracketD Offline
                Diracsbracket
                wrote on last edited by Diracsbracket
                #7

                @gmatbarua said in When an example project is opened in qtcreator, it gives an option to copy to another location in Linux and Windows 7, but not in Windows 10. How to get that feature in windows 10.:

                If you open the copied project, it will not open the corresponding help document that is opened automatically when we click the example project icons, which in turn opens the example project in default location.

                There is a simple way to change this:
                For the kit for which you made a copy of the Examples folder, go to the Qt installation folder for that kit, and in the bin folder (I use VS2017: D:\Qt\5.10.0\msvc2017_64\bin ), edit the qt.conf file.

                Mine looked as follows:

                [Paths]
                Documentation=../../Docs/Qt-5.10.0
                Examples=../../Examples/Qt-5.10.0
                Prefix=..
                

                Change the Examples path there, and it should work: I just tested it here. The Documentation still works, and you can directly click on the example tile in the Examples list of Qt Creator to load it, as usual.

                1 Reply Last reply
                0
                • aha_1980A aha_1980

                  Hi @gmatbarua

                  the copy function jumps in if the examples directory is read-only or if you don't have write access to that directory (as for building, you need write access).

                  What you could try is to make this directory write protected, maybe Creator then provides the dialog. I've not tested this, but it might be worth a try.

                  DiracsbracketD Offline
                  DiracsbracketD Offline
                  Diracsbracket
                  wrote on last edited by Diracsbracket
                  #8

                  @aha_1980 said in When an example project is opened in qtcreator, it gives an option to copy to another location in Linux and Windows 7, but not in Windows 10. How to get that feature in windows 10.:

                  I've not tested this, but it might be worth a try

                  Just tested it. No copy option is provided, AFAICT

                  Edit: After removing write permission to the Administrators group, I indeed get the following when trying to load an example:

                  0_1520333609758_6a180b01-d0ad-45ea-8ea1-a9d4e1485fbb-image.png

                  1 Reply Last reply
                  1
                  • G Offline
                    G Offline
                    gmatbarua
                    wrote on last edited by
                    #9

                    Problem solved. Since windows 10 sole user is the administrator, he has write access everywhere. Simply changing permission of the

                    C:\Qt\Examples
                    

                    directory solved the problem. Please remove write access for administrator and any user on that drectory.

                    1 Reply Last reply
                    2

                    • Login

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