[Solved]Context menu
-
wrote on 13 Aug 2011, 07:14 last edited by
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
Slot showContextTabMenu:@
void RizekMath::showContextTabMenu(const QPoint &pos)
{
qDebug() << "call menu!!!";
//other actions
}
@But this slot never call, why?
In advance, thank for help![EDIT: code formatting, Volker]
-
wrote on 13 Aug 2011, 07:17 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. -
wrote on 13 Aug 2011, 07:28 last edited by
Can you give us header of your RizekMath?
-
wrote on 13 Aug 2011, 07:28 last edited by
Oh sorry for anxietym i found my error.
I was very inconsiderate.
Thank all for try to help! -
wrote on 13 Aug 2011, 07:29 last edited by
What was it? Please tell us, and then please mark the post as [Solved], thanks.
-
wrote on 13 Aug 2011, 07:32 last edited by
[quote author="Ruzik" date="1313220536"]
Thank all for try to help![/quote]
We did not make in fact nothing, but you are welcome :-) -
wrote on 13 Aug 2011, 07:50 last edited by
I fogot to call function setContextMenuTabWidget(); and create menu
1/7