August 13, 2011

Ruzik Ruzik
Lab Rat
293 posts

[Solved]Context menu

 

Hellow, i have connect

  1. connect(tabWidget->getCurrentTabBar(), SIGNAL(customContextMenuRequested(const QPoint &)),this, SLOT(showContextTabMenu(const QPoint &)));

getCurrentTabBar – is my function, it return point to QTabBar
Slot showContextTabMenu:

  1. void RizekMath::showContextTabMenu(const QPoint &pos)
  2. {
  3.  qDebug() << "call menu!!!";
  4.         //other actions
  5. }

But this slot never call, why?
In advance, thank for help!

[EDIT: code formatting, Volker]

6 replies

August 13, 2011

koahnig koahnig
Dinosaur Breeder
2908 posts

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.

August 13, 2011

rokemoon rokemoon
Lab Rat
197 posts

Can you give us header of your RizekMath?

August 13, 2011

Ruzik Ruzik
Lab Rat
293 posts

Oh sorry for anxietym i found my error.
I was very inconsiderate.
Thank all for try to help!

August 13, 2011

rokemoon rokemoon
Lab Rat
197 posts

What was it? Please tell us, and then please mark the post as [Solved], thanks.

August 13, 2011

rokemoon rokemoon
Lab Rat
197 posts

Ruzik wrote:

Thank all for try to help!

We did not make in fact nothing, but you are welcome :-)

August 13, 2011

Ruzik Ruzik
Lab Rat
293 posts

I fogot to call function setContextMenuTabWidget(); and create menu

 
  ‹‹ save / load the state of lineEdit widget      [SOLVED] showing the dialog in a different way ››

You must log in to post a reply. Not a member yet? Register here!