title: Search Bar for Qtablewidget that has 2 different data sets
body: <p>I have a Table Widget that starts blank but is populated by a push button
  the lists can change but i would like to have a search bar that will search the same column [1]
  Here is the relevant code.</p>
  <pre><code>class Ui_Form(object):
   def setupUi(self, Form):
      Form.resize(1500, 950)
  
      font = QFont()
      font.setFamily(u&quot;Roboto&quot;)
      font.setPointSize(12)
  
      self.Actor_list = QTableWidget(Form)
      self.Actor_list.setObjectName(u&quot;Actor_list&quot;)
      self.Actor_list.setGeometry(QRect(20, 40, 740, 900))
      self.Actor_list.setFont(font)
      self.Actor_list.setAlternatingRowColors(True)
      self.Actor_list.setSortingEnabled(True)
      self.Actor_list.setWordWrap(False)
      self.Actor_list.setColumnCount(5)
      self.Actor_list.horizontalHeader().setVisible(True)
      self.Actor_list.horizontalHeader().setDefaultSectionSize(50)
      self.Actor_list.setColumnWidth(0, 75)
      self.Actor_list.setColumnWidth(1, 150)
      self.Actor_list.setColumnWidth(2, 100)
      self.Actor_list.setColumnWidth(3, 200)
      self.Actor_list.setSelectionBehavior(QTableWidget.SelectRows)
  
      self.Search_Bar = QLineEdit(Form)
      self.Search_Bar.setObjectName(u&quot;Search_Bar&quot;)
      self.Search_Bar.setGeometry(QRect(340, 10, 175, 25))
  
      def populate_actor():
          
          self.Actor_list.clear()
          self.Actor_list.setHorizontalHeaderLabels(['ID', 'Name', 'Birthday', 'Birthplace', 'Popularity'])
          row = 0
          self.Actor_list.setRowCount(len(actor_info_list))
          for infor in actor_info_list:
  
              print('Loading')
              self.Actor_list.setItem(row, 0, QTableWidgetItem(str(infor['id'])))
              print('Loading..')
              self.Actor_list.setItem(row, 1, QTableWidgetItem(str(infor['name'])))
              print('Loading....')
              self.Actor_list.setItem(row, 2, QTableWidgetItem(str(infor['birthday'])))
              print('Loading......')
              self.Actor_list.setItem(row, 3, QTableWidgetItem(str(infor['place_of_birth'])))
              self.Actor_list.setItem(row, 4, QTableWidgetItem(str(infor['popularity'])))
              row = row + 1
          print(str(len(actor_info_list)))
  
      def populate_movie():
          
          self.Actor_list.clear()
          self.Actor_list.setHorizontalHeaderLabels(['ID', 'Title', 'Released', 'Genre', 'Popularity'])
          row = 0
          self.Actor_list.setRowCount(len(movie_info_list))
          for infor in movie_info_list:
              print('Loading')
              self.Actor_list.setItem(row, 0, QTableWidgetItem(str(infor['id'])))
              print('Loading..')
              self.Actor_list.setItem(row, 1, QTableWidgetItem(str(infor['title'])))
              print('Loading....')
              self.Actor_list.setItem(row, 2, QTableWidgetItem((infor['release_date'])))
              print('Loading......')
              self.Actor_list.setItem(row, 3, QTableWidgetItem(str(infor['genres'])))
              self.Actor_list.setItem(row, 4, QTableWidgetItem(str(infor['popularity'])))
              row = row + 1
          print(str(len(movie_info_list)))
  
  
  # button pressing
      self.Pop_Actor_Button.clicked.connect(populate_actor)
      self.Pop_Movie_Button.clicked.connect(populate_movie)
      self.Actor_list.clicked.connect(main_clicked)
      self.Search_Bar.textChanged.connect(?????)
  </code></pre>
  <p>The column to filter is the 'Name' which is column [1]
  the two list are different sizes.
  I have been following this video <a href="https://www.youtube.com/watch?v=53bZSTSLUqI" rel="nofollow noreferrer">https://www.youtube.com/watch?v=53bZSTSLUqI</a> but something is getting lost on me or im putting the code in the wrong place.
  Any help or advice would be appreciated.</p>