I try to understand the code of someone else and he is using the QIcon function to set the WindowIcon. As I used the QIcon before, I used an absolute path inside my programm like this:
...
app = QApplication([])
app.setWindowIcon(QIcon('.\\MyApp\\data\\Logo.png'))
start_window = StartWindow()
start_window.show()
app.exit(app.exec_())
...
In his Code he uses a utility function to call QIcon to be able to change the filename. But instead of an absolute path he is calling QIcon(':/' + filename).
I am not able to achieve the same results with this "relative" path. I might get anything else wrong or misunderstand the use of :/