The #1 feature I miss in QML: The C/C++ preprocessor
-
wrote on 25 Jun 2024, 10:32 last edited by
It would be really helpful to be able to selectively include or exclude blocks of QML code based on compile time switches. Not to mention using #define for compile time constants and in some cases the actual QML component to use.
This would make cross platform development of things like dialogs and some views much simpler. It could also reduce the binary size and complexity of some QML components that today use global properties to enable or disable certain behaviors (like number of columns for UI elements in a Dialog, or the size of a window).
-
Hi,
This is not a replacement but maybe the file selectors feature might help.
1/2