Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I popup the menu again (such as a respawn)? #1

Open
muawijhe opened this issue Jul 24, 2019 · 1 comment
Open

How can I popup the menu again (such as a respawn)? #1

muawijhe opened this issue Jul 24, 2019 · 1 comment

Comments

@muawijhe
Copy link

Hi!
with respect to your examples, i.e. hexagon, I am trying to respawn the menu once the letter F is selected... however this does not happen. Any recommendation or suggestion ?

My goal is to use the menu items to select a certain configuration, and then using one of the menu entries execute a task will the parameter set.
I expect to connect the menu item signals to update the parameters, but once this happen, I need to re-show the menu in the original popup position in order to let the user to select more parameters.

I hope you can help me with this.

V.

`
// ....
subPie->insertItem("F", this, SLOT(respawn()));
// ...
public slots:
void noop()
{
qDebug() << "noop";
}

void respawn() {
    qDebug() << "respawn";
    pie->popup(oPosition);
}

signals:
void respawn(QMouseEvent *e);

protected:
QPoint oPosition;

protected:
void mousePressEvent(QMouseEvent *e)
{
oPosition = e->globalPos();
//if ( e->button() & Qt::RightButton ) {
pie->popup(oPosition);
return;
//}

    QTextEdit::mousePressEvent( e );

}

`

@sintegrial
Copy link
Owner

hi
sorry, we do not own the sources - it is just a compilation of qt solutions.
what is not working? popping up the menu? or action after pressing on F letter?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants