3 ms·
As every "flat" hierarchy this is inflexible and impossible to get right (think "ComboBox" or "MenuButton" for example). A better approach are mixins. Separate
by still_grokking 6y ago
As every "flat" hierarchy this is inflexible and impossible to get right (think "ComboBox" or "MenuButton" for example).
A better approach are mixins. Separate ones for layout and behavior. This is much more flexible, and avoids code duplication or "crazy" inheritance hierarchies at the same time.
Rust Traits are ideal for mixins. So a GUI toolkit in Rust should be just fine.
- jcelerier 6y ago> As every "flat" hierarchy this is inflexible and impossible to get right (think "ComboBox" or "MenuButton" for example). why does it work fine in Qt then ?
- rcxdude 6y agoIt doesn't work super well. It functions, but there's all kinds of funky interface design which basically exists because of the nature of inheritance.