I am making a small application that will help me keep track of projects and the due dates of the projects. One of the things I would like to add is the ability to open the main project folder in the file explorer. I have the QLabel link working by setting the text to
(label.setText('<a href='+ProjectFolder+'>Open Project Folder</a>')
and I have
label.setOpenExternalLinks(True)
But when I click on it nothing happens and I'm getting errors in the terminal window. They are all something like
ShellExecute 'z:%5C16904' failed (error 2)
I'm assuming this is because of \
and spaces that are in the link, but I'm not sure how to fix them. I have tried '\\' but doesn't seem to help. Any advice would be much apricated. Thank you for your time