Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-81457

Considering .Net/CSharp support

    XMLWordPrintable

Details

    • All

    Description

      Currently there are no official cross platform CSharp bindings to use Qt from CSharp. Given that .Net is split into .net Framework, .Net Core and Mono, this is understandable as it would have been too big of a task since Qt is a C++ library and not a .Net library.

       

      However I think Qt should consider adding support due to the upcoming .Net 5. With all major platforms (win, linux, mac, ios, android) being supported by one .Net runtime/sdk, there will only one set of bindings be required. 

       

      .Net offers many classes handling many of the things offered by Qt. But there is no cross platform gui framework available (although some community projects are working on this). And Microsoft said that they don't intent to add one in the near future, leaving the upcoming .Net 5 with it's platform dependent guis like WPF. Therefor It would not be necessary to add bindings for the entire Qt framework.

       

      Adding Qt's cross platform gui capabilities, mainly through QtQuick/QML, would be a great oppurtunity for both Qt and the Qt and .Net communities. It would also add an the only alternative to .Net's XAML approach (I personaly don't consider xml very readable, and looking through the forums there seem to be many people who would prefer a QML-like approach over XAML).

       

      As a possible starting point I would like to mention [this project|https://github.com/qmlnet/qmlnet]. It allows to use QML guis with CSharp applications. However the author is currently working on this alone. Right now it only supports Qt 5.10 and does not support Android or Linux. Supporting this project might be a good alternative to creating your own bindings, if you would prefer that.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            larvae larvae
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes