GithubHelp home page GithubHelp logo

Coverage about qtsharp HOT 30 CLOSED

ddobrev avatar ddobrev commented on May 27, 2024
Coverage

from qtsharp.

Comments (30)

ddobrev avatar ddobrev commented on May 27, 2024 1

@ShalokShalom Qt# is already in beta, you can find links to the releases and examples in the README. The only major missing piece is template classes and members which I have almost completed.

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024 1

When C# code is compiled, it turns into Microsoft's intermediate language which can be used by any .NET language. So yes, you can use Qt# with F#.
You cannot use QML with F# yet for the same reason you cannot use it with C# - it's a feature not implemented yet.

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024 1

When Qt# is compiled, you just add references to it from your F# code and work. That's it.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024 1

I can even draw QML

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

And so far as I get this .Net framework thing, is it possible to use C# to call QML in order to embed that combination into a F# project, yes?

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@ShalokShalom Support for QML needs work on its own so that QML code can affect C# and vice versa (just as it is with C++ and QML). I hope to be able to complete this feature by the end of the year if we're talking about my free time.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

I mean: Is it the possible to use Qt/QML with F#? Simply by calling it through C#?
.Net compiles all down to CIL?

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

If Qt# worked with QML, using it with F# would've been possible too, yes.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Cuz your documentation speaks about C# only. Might be nice to change this, if it applies to all languages of the .Net platform. 👍

This project aims to create Mono/.NET libraries that wrap Qt (https://qt-project.org/) thus enabling its usage through C#

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@ShalokShalom your suggestion makes perfect sense. Could you please send a pull request with the change?

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Already done, thanks.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Yeah, as I thought.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

"For now, Qt MinGW for Windows has been the only tested version. Qt for OS X and Linux are planned."

Is this still the case?

The Atomic Game Engine is currently shifting its course, since the current previous maintainer is left. Qt/KDE is a possible solution for their UI, which makes QtSharp an essential player in this concept. 😄

For this, support on the major platforms is important.
Thanks a lot for your support. 😃

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

@ShalokShalom I haven't stopped working, it's just there's quite some more to do. I need to finish the templates first and then I'll spare time on proper Unix support.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Thanks a lot.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Well, I just found out, that the imperative and object oriented code in F-Sharp looks and works exactly like in C# - this means, so far as I am concerned, that you could easily port your QtSharp onto F#, so we can use inline there?

from qtsharp.

ddobrev avatar ddobrev commented on May 27, 2024

C# produces regular .NET code which can be consumed by any .NET language, F# included.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Yes. the thing is, that you use C# to call the Qt functions, yes?

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Do you mean it makes less difference, if the file is called .cs or .fs?

Do be honest: I have less idea, how a sophisticated app will look, is there much C# specific code too write, in order to call Qt?

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Ok, thanks. :)

from qtsharp.

pauldotknopf avatar pauldotknopf commented on May 27, 2024

If you need Qml integration, I am working on a project that does exactly this. I'd consider it usable for production.

https://github.com/pauldotknopf/net-core-qml

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Oh, interesting...

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Oh, no F# API, so I prefer Fable for QML development. Thanks anyway, maybe someone writes an API sometimes.

from qtsharp.

pauldotknopf avatar pauldotknopf commented on May 27, 2024

I'm not sure what Fable is. Care to explain quickly? And how does that relate to Qt?

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

Fable translates F# to JavaScript and QML is practically simply a superset of JS.
You can import JS files in your QML code

from qtsharp.

pauldotknopf avatar pauldotknopf commented on May 27, 2024

Sure, you can translate F# (or even C#) to JS, but you can't use .NET.

With the project I shared, you can use the full .NET runtime. I'm not sure you'd actually want to transpile Qml javascript, since they have unique (and useful) syntax for signals/etc.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

With the project you shared, there is no F-Sharp implementation. I am a functional programmer by heart.

from qtsharp.

pauldotknopf avatar pauldotknopf commented on May 27, 2024

Why would you even want to use F# with Qt (which is inherently object oriented)?

Also, Qml.Net is a .NET library, which is reference-able from F# (.NET).

But again, you'd be working against the grain because Qt (and C++) is inherently/fundamentally object-oriented.

Having this "F# implementation" isn't practical, nor does it even make sense.

from qtsharp.

ShalokShalom avatar ShalokShalom commented on May 27, 2024

QML is declarative

from qtsharp.

pauldotknopf avatar pauldotknopf commented on May 27, 2024

To an extent it is, in that you can define the initial object hierarchy declaratively, but beyond that it is entirely object-oriented, not even close to functional.

Something tells me that you don't even know what you're looking for.

Good luck with that.

from qtsharp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.