How do I create real C# bindings for Qt6?
-
I'm really interested in creating C# bindings for the Qt6 libraries, and I'm wondering which C++ headers I should be focusing on first when creating the C# bindings?
I can clearly see there's a lot of C++ headers in there, and I'm completely unsure as to which one I should be using first when using LibraryImport/DllImport in .NET?
This guide tells me how to bind C++ code in .NET, but I really need to know the most important header files to bind for creating Qt6 bindings for C#.
The reason I ask, is because I'd really like to use Qt6 GUI inside of my .NET applications.
And before anyone points out, I am aware there is Qt/.NET, but that's just calling a compiled C# code into C++ code, meaning the entire project has to already be in C++, and can't be done the other way around with C++ to C# with this method.
I know it was done with QtSharp in the past, but it's long been abandoned, so those bindings will only work with Qt5 and won't work with Qt6.
I'd really like to know exactly where I need to start in creating the Qt6 C# bindings. Thank you in advance!
-
@Platinum-Lucario said in How do I create real C# bindings for Qt6?:
I know it was done with QtSharp in the past, but it's long been abandoned, so those bindings will only work with Qt5 and won't work with Qt6.
If you want to do it for Qt6, and if QtSharp has suitable free use licensing, would that not be a good place to start rather than from scratch?