title: Change QTableWidget Header Labels using a QLineEdit
body: <p>So i've made a Table in QtDesigner and i want to use a QLineEdit.text() to name its headers.</p>
  
  <p>The QLineEdit will be respresented with square brackets [].
  the QPushButton Will be represented with curly brackets{}.</p>
  
  <p>Column name: [<code>placeholdertext</code>                  ] {<code>Name</code>}</p>
  
  <p>I am using a <code>QspinBox</code> for the indexes.</p>
  
  <p>Now what i want, is to <code>give the user the possibility of naming all columns</code> simply <code>by typing</code> <code>[First_name, Last_name, Id_Number, ...]</code>but <code>i dont know how to name the headers</code> neither how to use the <code>split</code> thing</p>
  
  <p>How can i make this happen ?</p>
  
  <p><strong>Update :</strong></p>
  
  <p><img src="https://i.stack.imgur.com/mQ91U.png" alt="enter image description here"></p>
  
  <pre><code>def NameHeaders(self):
      colpos = self.ColumnSpinBox.value()
      colname = self.nameColumnLineEdit.text()
      model = QtGui.QStandardItemModel()
      model.setVerticalHeaderLabels(colname, split(","))
      self.TableWidget.setModel(model)
  </code></pre>
  
  <p>this is the function i've created linked to </p>
  
  <pre><code>"Name column/Row" Button
  </code></pre>
  
  <p>(for now it focuses only on naming the columns not the rows),</p>
  
  <p>so what i want is to name the columns just by typing in the column QlineEdit something like : First_name, Last_name, Id_number, ... </p>
  
  <p>and i want the code to detect the text between commas and assign each text to the the value of the QSpinBox</p>
  
  <p>Example :</p>
  
  <pre><code>QSpinBoxValue: 2 || Column name : First_name, Last_name, id_number
  
  
  On_Click 'Name Column/Row' Button: 
  
  
  assign First_name to Header with index 0
  
  
  assign Last_name to header with index 1
  
  
  assign Id_Number to header with index 2
  </code></pre>
  
  <p>is my example clear?</p>