code: def setup_scrollarea(self):
          
          self.view = QWidget()
  
          self.scene = QGridLayout(self.view)
          self.scene.setColumnStretch(0, 100)
          self.scene.setColumnStretch(2, 100)
  
          self.scrollarea = QScrollArea()
          self.scrollarea.setWidget(self.view)
          self.scrollarea.setWidgetResizable(True)
          self.scrollarea.setFrameStyle(0)
          self.scrollarea.setVerticalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
          self.scrollarea.setHorizontalScrollBarPolicy(Qt.ScrollBarAlwaysOff)
          self.scrollarea.setSizePolicy(QSizePolicy(QSizePolicy.Ignored,
                                                    QSizePolicy.Preferred))
  
          # Set the vertical scrollbar explicitely :
          # This is required to avoid a "RuntimeError: no access to protected
          # functions or signals for objects not created from Python" in Linux.
          self.scrollarea.setVerticalScrollBar(QScrollBar())
  
          return self.scrollarea
docs: Setup the scrollarea that will contain the FigureThumbnails.