Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Create QT hmi for existing C# application
Qt 6.11 is out! See what's new in the release blog

Create QT hmi for existing C# application

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 3 Posters 1.0k Views 1 Watching
  • 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.
  • R Offline
    R Offline
    Remco
    wrote on last edited by
    #1

    Hi all,

    I have an existing C# application with a very simple user interface. First I focussed on the functionality of the application and that is all working. Now I would like to create the HMI in QT, as the posibilities with the stadard window forms are to limited. My C# application consist of 3 classes that should interact with the HMI. What would be the way to go? Can I create a QT project where I insert the required information into the classes and read it out of the classes? How would that look like.

    1 Reply Last reply
    0
    • mrjjM Offline
      mrjjM Offline
      mrjj
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome

      Qt uses C++ and cannot directly use C# classes. (as far as I know)
      It it should be possible using a DLL or via C# bindings
      https://github.com/ddobrev/QtSharp
      but it is not simple in any case.

      So if you have only 3 classes, have you considered writing it in c++/Qt and
      avoid all the hassle of mixing these two frameworks?

      1 Reply Last reply
      0
      • jsulmJ Offline
        jsulmJ Offline
        jsulm
        Lifetime Qt Champion
        wrote on last edited by
        #3

        "as the posibilities with the stadard window forms are to limited" - why?
        What is missing?

        https://forum.qt.io/topic/113070/qt-code-of-conduct

        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