Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Hellow, i have connect
@connect(tabWidget->getCurrentTabBar(), SIGNAL(customContextMenuRequested(const QPoint &)),this, SLOT(showContextTabMenu(const QPoint &)));@
getCurrentTabBar - is my function, it return point to QTabBar
void RizekMath::showContextTabMenu(const QPoint &pos)
qDebug() << "call menu!!!";
But this slot never call, why?
In advance, thank for help!
[EDIT: code formatting, Volker]
koahnig last edited by
This information is not enough to provide any assistance.
Did you get any information when connecting the slot?
Furthermore, you can check the return value of the connect to make sure that the connect has been doen properly.
Can you give us header of your RizekMath?
Oh sorry for anxietym i found my error.
I was very inconsiderate.
Thank all for try to help!
What was it? Please tell us, and then please mark the post as [Solved], thanks.
[quote author="Ruzik" date="1313220536"]
Thank all for try to help![/quote]
We did not make in fact nothing, but you are welcome :-)
I fogot to call function setContextMenuTabWidget(); and create menu