CustomContextMenu SLOT not working(QTableWidget)
-
Just added that slot by rightclicking at Design mode, add some simple stuff, and it's have no effect:
void myProject::on_TabWid_customContextMenuRequested(const QPoint &pos) { ui->textBrowser1->append("atata!"); }What's wrong? I rightclicking everything and nothing happens..
-
hi
Do you have
ui->TabWid->setContextMenuPolicy(Qt::CustomContextMenu);
?