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

Multibe drobdown/combo menus text below other dropdowns #414

Open
J-Arnold opened this issue Mar 19, 2024 · 3 comments
Open

Multibe drobdown/combo menus text below other dropdowns #414

J-Arnold opened this issue Mar 19, 2024 · 3 comments
Labels

Comments

@J-Arnold
Copy link

Hi,
I try to use multible dropdowns/combo menus in an node.
I add in the example in file nodes/widget_nodes.py at line 25 additional dropdowns:
self.add_combo_menu('my_menu', 'Menu Test', items=items, tooltip='example custom tooltip')
self.add_combo_menu('my_menu2', 'Menu Test2', items=items, tooltip='example custom tooltip2')
self.add_combo_menu('my_menu3', 'Menu Test3', items=items, tooltip='example custom tooltip3')

after starting if you select the top Dropdown the select textes are below and hidden by the other dropdowns, so it is not possible to read and select the text.

combobox issue
@Yobas
Copy link

Yobas commented Mar 28, 2024

I ran into a similar problem when using multiple combo boxes in the same node. It turned out that the problem is here:

self.setZValue(Z_VAL_NODE_WIDGET + 1)

I think it is possible to increase the z-value for the NodeComboBox when the user opens the dropdown list and restore it when the list is hidden.

@jchanvfx jchanvfx added the bug label Apr 1, 2024
@jchanvfx
Copy link
Owner

jchanvfx commented Apr 4, 2024

Hi @J-Arnold,

I came across this issue before alternatively you could create you own custom node widget with multiple combo boxes and then embed it into the node.

See example:
https://chantonic.com/NodeGraphQt/api/examples/ex_node.html#embedding-custom-widgets

Thanks @Yobas for the suggestion I'll look into implementing some kind of workaround for setting the z value.

Cheers,
J

@J-Arnold
Copy link
Author

J-Arnold commented Apr 7, 2024

Hi,

Thanks for the tip, if all dropdowns are in one Widget there is no overlay issue.

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

No branches or pull requests

3 participants