title: Make the whole gridLayoutWidget clickable
body: <p>I have the following code which shows me 7 of the widgets in a history window of my application. Each widget has a name, icon and an address to a previously opened file. I want all widgets to be clickable and write a function which exactly knows which widget was clicked. I have no clue on how to make a whole widget act as a single clickable item.
  This is my code for showing the widgets.</p>
  <pre><code>class MainWindow(QtWidgets.QMainWindow):
      def __init__(self, parent=None):
          super(MainWindow, self).__init__(parent)
  
          
          for i in range (7):
              self.gridLayoutWidget = QWidget(self)
              self.gridLayoutWidget.setGeometry(QRect(40, 40 + i * 60, 350, 40))
  
              self.gridLayout = QGridLayout(self.gridLayoutWidget)
              self.gridLayout.setContentsMargins(0, 0, 0, 0)
              self.Label1 = QLabel(self.gridLayoutWidget)
              self.Label1.setText(&quot;the name of the file&quot;)
              self.Label1.setFont(QFont('Arial', 14))
  
              self.gridLayout.addWidget(self.Label1, 0, 1, 1, 9)
  
              self.Label2 = QLabel(self.gridLayoutWidget)
              self.Label2.setText(&quot;the address of the file&quot;)
              self.gridLayout.addWidget(self.Label2, 1, 1, 1, 9)
  
              self.im = QPixmap(&quot;img.ico&quot;)
              self.icon = QLabel()
              self.icon.setPixmap(self.im)
  
              self.gridLayout.addWidget(self.icon , 0, 0, 2, 1)
  </code></pre>