Skip to content

How do I connect the signal of a node to a slot function in a QMainWindow? #431

Open

Description

@CQF0

I would appreciate guidance from the experts. I have created an openglwidget in class gui: public QMainWindow to show some model, and I am now seeking to implement some operations that depend on the node editor. However, I do not know about how to establish a connection between the signal emitted by the node and the function within class gui.

Activity

  1. AriyaConseils commented on Jul 29, 2024

    @AriyaConseils

    i can help you if you want
    i've done www.swiiz.io with it, i'm quiet good now using this lib
    06eymeric@gmail.com this is my personal email

  2. pandajr69 commented on Mar 27, 2026

    @pandajr69

    Maybe it could help you but, I hope you solved problem after 2year :). unfortunately authors do not exist in here :)

    QtNodes::NodeId nodeId = _graphModel->addNode(MyNode::staticName()); auto *node= _graphModel->delegateModel<MyNode>(nodeId ); connect(node, &MyNode:signal, this, &MainWindow:slot);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions