Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Language Bindings
  4. How do I create real C# bindings for Qt6?
QtWS25 Last Chance

How do I create real C# bindings for Qt6?

Scheduled Pinned Locked Moved Unsolved Language Bindings
qt 6csharpdotnetbindings
4 Posts 3 Posters 857 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Platinum Lucario
    wrote on 8 Aug 2024, 15:49 last edited by
    #1

    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!

    J 1 Reply Last reply 8 Aug 2024, 17:24
    0
    • P Platinum Lucario
      8 Aug 2024, 15:49

      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!

      J Offline
      J Offline
      JonB
      wrote on 8 Aug 2024, 17:24 last edited by
      #2

      @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?

      P 1 Reply Last reply 28 Nov 2024, 05:32
      2
      • J JonB referenced this topic on 13 Nov 2024, 15:36
      • J JonB
        8 Aug 2024, 17:24

        @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?

        P Offline
        P Offline
        Platinum Lucario
        wrote on 28 Nov 2024, 05:32 last edited by
        #3

        @JonB said in How do I create real C# bindings for 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?

        I'll definitely give it a go! From what I can see, it's under the Apache License 2.0, so it's possible.

        1 Reply Last reply
        0
        • R Offline
          R Offline
          rivnakm
          wrote on 9 Mar 2025, 21:28 last edited by
          #4

          I'm interested in contributing here if anyone has gotten the ball rolling

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved