C++ (Qt)... int x = 5; connect(sender, SIGNAL(my_signal(QPoint)), this, SLOT(my_slot(QPoint, x)));.. void my_slot(QPoint point, int x){......}...
C++ (Qt)...int x = 11;connect(this->ui->tableWidget, &QTableWidget::customContextMenuRequested, [=](QPoint pos) { this->tableWidget_contextMenu(pos, x); });......void Templiers::tableWidget_contextMenu(QPoint pos, int x)...