itemDoubleClicked and cellDoubleClicked.What's the difference between the two?
Solved
General and Desktop
-
itemDoubleClicked is only emitted if there is an item set for this cell.
-
Hi,
A cell can be empty or contain an item hence the difference.
-
Hi
If you have a look here
https://wiki.qt.io/How_to_Use_QTableWidgetyou see we tell how many rows/columns
m_pTableWidget->setRowCount(10);
m_pTableWidget->setColumnCount(3);so before we put a QTableWidgetItem in all those cells, they are empty and will return a nullptr
if you ask for the item.
So yes, an empty cell is not just an item without text. its itemless.