S
S
Sardj2015-12-19 05:37:42
Qt
Sardj, 2015-12-19 05:37:42

When is the signal triggered?

In the designer washed down the connection

hos::hos(QWidget *parent) :
   QMainWindow(parent),
   ui(new Ui::hos)
{
   ui->setupUi(this);
   ui->dateEdit_2->hide();
   ui->dateEdit_3->hide();
   connect(ui->tableWidget,SIGNAL(itemSelectionChanged(QTableWidgetItem*)),this,SLOT(slotEdit(QTableWidgetItem*)));

}

added signals to the class
:
itemSelectionChanged(QTableWidgetItem*);
the slot was created
void hos::slotEdit(QTableWidgetItem *item)
But for some reason, when changing the text, the program does not enter the slot, what did I do wrong, maybe I added something?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Martyanov, 2015-12-19
@vilgeforce

It's possible they did something wrong. In the console window of the software, at startup, does it swear at crooked signals-slots?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question