I have written something that parses the Qt headers and then emits nim files, together with some macros that allow inheriting from a QObject.
It is using treesitter for parsing, but there are too many exceptions for it to work properly, so only a small portion of headers have been converted. So now I'm rewriting it to use cppast for the parsing, and generate the nim files. Hopefully that allows an easier path to convert all headers :)
