Icons don't appear in projects (Windows)
-
@Platinum-Lucario said in Icons don't appear in projects (Windows):
These were the results when running the command
Your Qt Creator is loading DLLs from external folders:
- C:\Program Files (x86)\RedFox\AnyDVD\ADvdDiscHlp.dll
- C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\FileSyncShell.dll
Remove these 2 folders from your PATH, reboot, and see if that helps.
@JKSH Do I remove the folders entirely from the locations provided? Or is there some file or directory that tells Qt Creator which .dll paths to load?
-
Hi, you don't need to remove the folders from your computer, what @JKSH meant was to remove them from the PATH environment variable. One quick test you can do, start a CMD window and type:
set path= c:\qt\tools\qtcreator\bin\qtcreator
This will temporarily (only for that CMD window) remove all folders from your PATH. If Qt Creator starts up with the icons now visible (via then 2nd line above) then something in your PATH environment variable is the problem.
P.S. Also please uninstall your GeForce Experience, sometimes it doesn't play nicely with non-Steam apps (like Qt).
-
@JKSH Do I remove the folders entirely from the locations provided? Or is there some file or directory that tells Qt Creator which .dll paths to load?
@Platinum-Lucario said in Icons don't appear in projects (Windows):
Or is there some file or directory that tells Qt Creator which .dll paths to load?
It's not a file or directory; it is a "variable" in your operating system called the system PATH. The PATH tells all applications on your PC where to find DLLs.
See https://opentechguides.com/how-to/article/windows-10/113/windows-10-set-path.html to learn about (but do not touch the Registry unless you're not 100% sure what you're doing!)
-
Hi, you don't need to remove the folders from your computer, what @JKSH meant was to remove them from the PATH environment variable. One quick test you can do, start a CMD window and type:
set path= c:\qt\tools\qtcreator\bin\qtcreator
This will temporarily (only for that CMD window) remove all folders from your PATH. If Qt Creator starts up with the icons now visible (via then 2nd line above) then something in your PATH environment variable is the problem.
P.S. Also please uninstall your GeForce Experience, sometimes it doesn't play nicely with non-Steam apps (like Qt).
@hskoglund said in Icons don't appear in projects (Windows):
Hi, you don't need to remove the folders from your computer, what @JKSH meant was to remove them from the PATH environment variable. One quick test you can do, start a CMD window and type:
set path= c:\qt\tools\qtcreator\bin\qtcreator
This will temporarily (only for that CMD window) remove all folders from your PATH. If Qt Creator starts up with the icons now visible (via then 2nd line above) then something in your PATH environment variable is the problem.
P.S. Also please uninstall your GeForce Experience, sometimes it doesn't play nicely with non-Steam apps (like Qt).
Alrighty, I'll definitely give that a go as well! And possibly uninstall GeForce Experience
@JKSH said in Icons don't appear in projects (Windows):
@Platinum-Lucario said in Icons don't appear in projects (Windows):
Or is there some file or directory that tells Qt Creator which .dll paths to load?
It's not a file or directory; it is a "variable" in your operating system called the system PATH. The PATH tells all applications on your PC where to find DLLs.
See https://opentechguides.com/how-to/article/windows-10/113/windows-10-set-path.html to learn about (but do not touch the Registry unless you're not 100% sure what you're doing!)
I've opened up PATH in the environment variable editor, and I've noticed that C:\Qt entries are not in there. Do I have to add in the C:\Qt entries in there?
Here are the entries in PATH:
C:\Python27\; C:\Python27\Scripts; c:\devkitPro\msys\bin; C:\Program Files (x86)\Intel\iCLS Client\; C:\Program Files\Intel\iCLS Client\; C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\WINDOWS\System32\WindowsPowerShell\v1.0\; C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL; C:\Program Files\Intel\Intel(R) Management Engine Components\DAL; C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT; C:\Program Files\Intel\Intel(R) Management Engine Components\IPT; C:\Program Files (x86)\Skype\Phone\; C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\WINDOWS\System32\WindowsPowerShell\v1.0\; C:\Program Files (x86)\Common Files\Seagate\SnapAPI\; C:\Program Files (x86)\Common Files\Acronis\VirtualFile\; C:\Program Files (x86)\Common Files\Acronis\VirtualFile64\; C:\Program Files (x86)\Common Files\Acronis\SnapAPI\; C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\; C:\Program Files\PuTTY\; C:\MinGW\bin; C:\WINDOWS\System32\OpenSSH\; C:\Program Files\dotnet\; C:\Program Files\Microsoft SQL Server\130\Tools\Binn\; C:\Strawberry\c\bin; C:\Strawberry\perl\site\bin; C:\Strawberry\perl\bin; C:\Program Files\CMake\bin; C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common; C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
And from what I can see, "C:\Program Files (x86)\RedFox\AnyDVD\ADvdDiscHlp.dll" and "C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\FileSyncShell.dll" aren't in there.
-
@Platinum-Lucario said in Icons don't appear in projects (Windows):
Do I have to add in the C:\Qt entries in there?
No, don't add anything to the global PATH.
Having too many things in the PATH is common cause of problems. Qt does not need to be in the PATH.
Here are the entries in PATH:
You have posted the System PATH; you must also look at your User PATH (under "User variables for Silve")
And from what I can see, "C:\Program Files (x86)\RedFox\AnyDVD\ADvdDiscHlp.dll" and "C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\FileSyncShell.dll" aren't in there.
The PATH is a variable containing folders.
Check every folder in your PATHs and ensure that they don't contain Qt DLLs. Otherwise, you find yourself in DLL Hell
Anyway, I'm guessing that
C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\
is causing you problems. OneDrive uses Qt. If Qt Creator tries to load theimageformats
DLLs from OneDrive, it will fail. -
@Platinum-Lucario said in Icons don't appear in projects (Windows):
Do I have to add in the C:\Qt entries in there?
No, don't add anything to the global PATH.
Having too many things in the PATH is common cause of problems. Qt does not need to be in the PATH.
Here are the entries in PATH:
You have posted the System PATH; you must also look at your User PATH (under "User variables for Silve")
And from what I can see, "C:\Program Files (x86)\RedFox\AnyDVD\ADvdDiscHlp.dll" and "C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\FileSyncShell.dll" aren't in there.
The PATH is a variable containing folders.
Check every folder in your PATHs and ensure that they don't contain Qt DLLs. Otherwise, you find yourself in DLL Hell
Anyway, I'm guessing that
C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\
is causing you problems. OneDrive uses Qt. If Qt Creator tries to load theimageformats
DLLs from OneDrive, it will fail.@JKSH Interesting, the only entry in the User PATH is:
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
Could this actually be the cause of the problem?
-
@JKSH Interesting, the only entry in the User PATH is:
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
Could this actually be the cause of the problem?
@Platinum-Lucario said in Icons don't appear in projects (Windows):
Interesting, the only entry in the User PATH is:
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
...
Could this actually be the cause of the problem?
I'm not sure.
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
is meant to be there.Well, for some reason your OS is linking DLLs from C:\Program Files (x86)\RedFox\AnyDVD\ and C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\ into Qt Creator, which is not supposed to happen. You'll need to find out what's causing this.
-
@Platinum-Lucario said in Icons don't appear in projects (Windows):
Interesting, the only entry in the User PATH is:
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
...
Could this actually be the cause of the problem?
I'm not sure.
%USERPROFILE%\AppData\Local\Microsoft\WindowsApps
is meant to be there.Well, for some reason your OS is linking DLLs from C:\Program Files (x86)\RedFox\AnyDVD\ and C:\Users\Silve\AppData\Local\Microsoft\OneDrive\19.232.1124.0005\ into Qt Creator, which is not supposed to happen. You'll need to find out what's causing this.
@JKSH I'm not sure exactly what fixed it, but it's all working now! Either it was updating the NVIDIA GeForce driver, running Listdlls64.exe or enabling Windows Sandbox in the optional features that solved it, since it started working after rebooting my PC. I didn't even change anything in the Environment Variables.
-
@JKSH I'm not sure exactly what fixed it, but it's all working now! Either it was updating the NVIDIA GeForce driver, running Listdlls64.exe or enabling Windows Sandbox in the optional features that solved it, since it started working after rebooting my PC. I didn't even change anything in the Environment Variables.
@Platinum-Lucario said in Icons don't appear in projects (Windows):
I'm not sure exactly what fixed it, but it's all working now!
Great! Happy coding :)
Thank you for sharing your solution.
-
This is fucking ridiculous. How can I add an icon to my Qt Tools for VS project?