Skip to content

Update the node view after adding a widget #289

@aloytag

Description

@aloytag

When adding a widget to a node (e.g., a text input) I get this result:

1

...instead of this:

2

I can get the look of the second image after changing something, like the value in the text input widget, or after executing the update() node method.

So I suggest adding self.update() as the last line in these four methods in BaseNode class (base_node.py file):

  • add_custom_widget()
  • add_combo_menu()
  • add_text_input()
  • add_checkbox()

Basically, adding self.update() after each self.view.add_widget(widget) execution.

NodeGraphQt version: 0.5.0
Qt.py version: 1.3.7
PySide2 version: 5.15.2.1
Python version: 3.9.2
OS: Debian GNU/Linux 11 (bullseye)

Regards.

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