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. What should be in C:\Users\*name*\qt
Forum Updated to NodeBB v4.3 + New Features

What should be in C:\Users\*name*\qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 287 Views 2 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.
  • E Offline
    E Offline
    Enogma
    wrote on last edited by Enogma
    #1

    Hi all,

    I have been developing a Qt app in Visual Studio 2019, which worked for a time. I now think i ran CCleaner and it has deleted some files in the path C:\Users*name*\qt. I only realised belatedly that it was this path which was being effected. The reason is that Qt 6.1.3 explicitly told me that this is where it was looking.

    I removed Qt, 5.15 and reinstalled with Qt 6.1.3 and that made the build work. I ran CCleaner again and of course it stopped working. I have since uninstalled 6.1.3 and reinstalled it but perhaps because its the same build its not triggering these files to be populated. It sounds like some just need to be copied from Qt installation directory to C:\Users*name*\Qt.

    I have all the necessary .dlls in my debug directory for VS.

    The error message is as in image.Capture.PNG

    My question is what exactly should the folder structure look like.
    I currently have the folders as listed in the title of this topic.

    I can probably copy qguiapplication.cpp there, but then i imagine there will be other files required.

    Thanks
    Pete

    JKSHJ 1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi

      • My question is what exactly should the folder structure look like.

      http://www.tripleboot.org/?p=138

      but you should use
      https://doc.qt.io/qt-5/windows-deployment.html
      as it will make the needed sub folders.

      1 Reply Last reply
      1
      • E Enogma

        Hi all,

        I have been developing a Qt app in Visual Studio 2019, which worked for a time. I now think i ran CCleaner and it has deleted some files in the path C:\Users*name*\qt. I only realised belatedly that it was this path which was being effected. The reason is that Qt 6.1.3 explicitly told me that this is where it was looking.

        I removed Qt, 5.15 and reinstalled with Qt 6.1.3 and that made the build work. I ran CCleaner again and of course it stopped working. I have since uninstalled 6.1.3 and reinstalled it but perhaps because its the same build its not triggering these files to be populated. It sounds like some just need to be copied from Qt installation directory to C:\Users*name*\Qt.

        I have all the necessary .dlls in my debug directory for VS.

        The error message is as in image.Capture.PNG

        My question is what exactly should the folder structure look like.
        I currently have the folders as listed in the title of this topic.

        I can probably copy qguiapplication.cpp there, but then i imagine there will be other files required.

        Thanks
        Pete

        JKSHJ Online
        JKSHJ Online
        JKSH
        Moderators
        wrote on last edited by
        #3

        Hi, and welcome!

        Please provide the following information:

        1. Where did you install Qt?
        2. How did you try to run your application?

        @Enogma said in What should be in C:\Users\*name*\qt:

        I now think i ran CCleaner and it has deleted some files in the path C:\Users*name*\qt. I only realised belatedly that it was this path which was being effected.

        ...

        I ran CCleaner again and of course it stopped working.

        That sounds very strange; my CCleaner has never affected my Qt installation.

        CCleaner shows you a list of files that it deletes. Have a closer look at what it does when you run it.

        The reason is that Qt 6.1.3 explicitly told me that this is where it was looking.

        That path looks like the source code structure that was in place when the DLL was built. That doesn't mean your computer needs that structure.

        I can probably copy qguiapplication.cpp there, but then i imagine there will be other files required.

        No, you don't need any *.cpp files to run your application.

        Qt Doc Search for browsers: forum.qt.io/topic/35616/web-browser-extension-for-improved-doc-searches

        1 Reply Last reply
        1
        • E Offline
          E Offline
          Enogma
          wrote on last edited by Enogma
          #4

          Hi. Thanks both.

          1. I installed qt in d:\qt. It is looking explicitly for files in c:\users\name\qt. which is currently empty.
          2. I can try to run from the IDE or launch the exe with the same result.

          I understand programs dont need .cpp to run, its for compiling. However, it wants it. Probably because im running in debug and its trying to link a pdb.

          I have no definitive proof that CCleaner did it but there is a trend.

          Works been very busy so have done what mrjj said, but i shall try now!

          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