-1

Whats is wrong with following call. IDBTable is QTableWidget

connect(m_GUI->m_UI->IDBTable,SIGNAL(cellPressed(2, 0)), this, SLOT(slotGoToWelcomeScreen()));
  • Replace `SIGNAL(cellPressed(2, 0))` with `SIGNAL(cellPressed(int, int))`. Then you can call `cellPressed(2,0)` to trigger `slotGoToWelcomeScreen`. – Kao Feb 15 '21 at 08:37

1 Answers1

1

Your signal definition is wrong. There is no such signal cellPressed(2, 0) but only cellPressed(int, int). Please read the documentation about signals and slots and prefer the new signal slot syntax to catch such errors during compile time.

chehrlic
  • 913
  • 1
  • 5
  • 5