Pyqt6 Документация [upd]
He clicked on the summary. There it was: itemDoubleClicked . But the documentation warned him in a small, italicized font: This signal is emitted when the user double clicks on an item.
He ran the script. The window appeared. It didn't crash. He dragged a folder of images into the tree view. The itemChanged signal fired, the logic executed, and the images populated the grid below. pyqt6 документация
You might see people recommending PySide6 (the official Qt for Python library from The Qt Company). The beautiful thing is: He clicked on the summary
Хотите разобрать создания приложения, например, калькулятора или текстового редактора на PyQt6? the logic executed

