Giter VIP home page Giter VIP logo

Comments (4)

russelltg avatar russelltg commented on May 30, 2024

I'd definitely be able to use this 👍

from nodeeditor.

paceholder avatar paceholder commented on May 30, 2024

Hi thanks for your appreciation.

There is a way to add one QWidget in the central part of the Node. It is up to you how complicated this central widget is constructed. I would add several child widgets with predefined vertical stride. It is possible to make child widgets visible or invisible on demand (everything is happening inside the user-defined model).

Have a look at the example images -- it shows how to return a central QWidget from a model.

A couple of guys have implemented the whole 3D editor where they had "vector components" node with three number-editors. The Qt Node Editor was slightly modified but the concept is the same as proposed above.

In the picture you can see (hopefully) nodes with three editors.
3D Editor

Let me know if that helps.

Regards,
Dmitry

from nodeeditor.

ragundo avatar ragundo commented on May 30, 2024

I see.
Create a central widget with children widgets "aligned" to each port. I would need to figure out how to calculate the point relative to the node origin where draw each children in order to be aligned with the ports.

Thanks

from nodeeditor.

infamicstudios avatar infamicstudios commented on May 30, 2024

Does anybody have an example implementation of this? Would the best place to do this be during node painting or would this have to be implemented on a per node bases?

from nodeeditor.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.