PDA

View Full Version : How to select a line in QTableWidget whit Span



BrFla
10th December 2013, 18:44
I have a QTableWidget dynamic and I used setSpan for rows. I have 5 columns. 3 with Span.

For example:

m_pTableResult->setSpan(0, 0, 4, 1);
m_pTableResult->setSpan(0, 1, 4, 1);
m_pTableResult->setSpan(0, 2, 4, 1);

My problem is when I click on a cell at the column 3. If I click on line different of the first line (for example, line 2, column 3 ) the columns 0, 1 and 2 will not be selected.

How could I do the column 0, 1 and 2 be selected in this case.

Thanks.

BrFla
11th December 2013, 11:51
How to select only one cell instead of selecting a row?