Is it possible to paint a QGraphicsItem inside the paint() method?

I’m creating a subclass of QGraphicsItem, and this subclass has different places that the user can click. My idea is for each component clicked to create a subclass of QGraphicsItem with …

QFileDialog to open multiple files

I am trying to show a dialog box to open multiple files but seems like it is not working. The following is a function defined in my Class: def loadFiles(self): filter = “TXT (*.txt);;PDF (*….