1

Topic: Qt How to make that the falling out menu fell out to the right of the button?

this->  = new QMenu (this);
A certain button-> setMenu (this-> );

Thus, there  hinting that the menu falls out from below
And how to make, what would fall out on the right?

2

Re: Qt How to make that the falling out menu fell out to the right of the button?

At "a certain button" intercept event contextMenuEvent .
In it also you do manual show of the menu, in the spirit of

nekoemenju-> move (x, y);
nekoemenju-> show ();

Also do not forget to cancel QContextMenuEvent that Qt did not continue standard handling of event and did not try to open the menu repeatedly.

3

Re: Qt How to make that the falling out menu fell out to the right of the button?

White Owl;
Thanks, I will try