Widget bindings should be generated - Lots of widgets are missing #63
Description
Svelte NodeGUI sounds just what I need for my application.
The docs list only a number of very basic widgets.
These seem to be implemented in React NodeGUI, and Svelte NodeGUI just bridges over the React implementations.
For my real world application, I need a much larger number of Qt widgets. Without more widgets, I cannot even make a feasability study whether Svelte NodeGUI is suitable for my application, because the current set of widgets is just too small to find out whether it would work. Theoretically, I could add the widgets myself, but there are too many missing.
However, I am faced with 5 layers of abstraction:
- OS widgets ->
- Qt ->
- Node GUI ->
- React NodeGUI ->
- Svelte NodeGUI
This makes it difficult to add new widgets, because I need to understand a lot of intermediate wiring code, to add a widget. Worse, the mappings seem to be hand-written.
May I suggest a different approach? Why don't you take the Qt widget API descriptions in computer-readable form, and then use Swig or a custom-made software to generate the bindings, for NodeGUI and each of React/Vue/Svelte NodeGUI?
This would have the following advantages:
- All Qt widgets supported, in all variants of NodeGUI
- API up to date with new Qt versions
- SvelteGUI would no longer need to use React NodeGUI, eliminating at least one level of indirection. (compare Stop bundling source files from React NodeGUI #21)