title: QTableView and double click on a cell
body: <p>I am working on a test case editor. This editor contains USART a transmit and receive packet format. The editor is a table view.</p>
  
  <p>The transmit and receive packet is eight bytes long, for example:</p>
  
  <pre><code>0x01 0x02 0x03 ... 0x08
  </code></pre>
  
  <p>It is in my fifth and sixth column. Now, I want the cells in this column to be read only, but when I double-click on any cell in these columns a pop-up widget is displayed. This widget will contain eight boxes in the text edit, where the user can enter the packet format (i.e. eight bytes long) data. I can easily copy back this data from pop up, widget to the read only cells in the backend.</p>
  
  <p>This will take away all the policy from the user, like whether or not there should be a space between each byte. Thereby, this will remove potential human errors.</p>
  
  <p>1: Is there an event handler for double clicking on the cell of table view?</p>
  
  <p>2: Can I have a common double click handler for each cell of the same column?</p>
  
  <p>3: How can I make the cells of a particular column read only in table view while preserving the fact that I can change their value at the end (i.e. back)?</p>
  
  <p><img src="https://i.stack.imgur.com/NcMCp.png" alt="enter image description here"></p>