I have a question about the resource system in PyQt6 and PySide6. firstly why PySide6 still supports the qrc system and PyQt6 does not. secondly how to use an image as a background for a widget in PyQt6, I saw the notion of addSearchPath(), and setSearchPath() but I didn't understand how to use it and it didn't work.
QtCore.QDir.addSearchPath('icons', 'path_to_icons/')
icon = QtGui.QIcon('icons:myicon.png')