slint icon indicating copy to clipboard operation
slint copied to clipboard

Application logic code separation

Open and-elf opened this issue 1 year ago • 2 comments

As a qt developer, I'm used to register an implementation of a backend class to the runtime so that all logic doesn't have to reside in main.cpp. As far as the examples go, all interactions have to be aliased in mainwindow or be located in global scope. Is there a way to handle interactions more like it's done in qt? Maybe the parser have to be changed for this to work? Make it possible to include cpp/rust/js types in slint files?

and-elf avatar Jul 17 '22 08:07 and-elf

Yes, this is missing functionality. I think #251 captures the same, with some discussion.

tronical avatar Jul 17 '22 10:07 tronical

Ok, thank you. I'll try to change the parser/generator to add support to include CPP types to slint.

and-elf avatar Jul 17 '22 12:07 and-elf

Closing as Duplicated of #251

ogoffart avatar Jun 28 '23 05:06 ogoffart