Results 1 to 5 of 5

Thread: Qt-DLLs in a .NET-Application

  1. #1
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Qt-DLLs in a .NET-Application

    Hello,
    we have a relatively big Qt-Application(for Windows), which is split into many DLLs. On the other hand we are developing a .NET Application. The two applications have a lot in common. So the question is: Is it possible to use Qt-DLLs(c++) in a .NET-Application (Windows Forms)? If yes, what is the best approach?

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt-DLLs in a .NET-Application

    It depends what this c++ part is supposed to do for your app.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    May 2012
    Location
    Germany
    Posts
    10
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Qt-DLLs in a .NET-Application

    In the first step I would like to display some GUI-elements (QWidgets) in some kind of wrapper-form in the .NET app.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: Qt-DLLs in a .NET-Application

    To do that first you need to integrate the two event loops so that events for both systems are processed. As for wrapping Qt widgets into .NET form, I have no idea if this is possible. You should be able to show Qt widgets in a new window though.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Qt-DLLs in a .NET-Application

    I have not done it myself but the docs indicate you should be able to embed a Qt-based ActiveX control into a .Net form. Non GUI classes can be integrated more directly with some wrapper code.
    http://doc.qt.io/qt-5/activeqt-dotnet.html
    Last edited by ChrisW67; 4th February 2015 at 20:19.

Similar Threads

  1. Qt dlls versus Qt creator dlls;
    By mut in forum Newbie
    Replies: 1
    Last Post: 27th June 2014, 21:04
  2. Replies: 8
    Last Post: 23rd March 2011, 10:13
  3. Application won't run - missing DLLs?
    By N3wb in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2009, 22:52
  4. Application icon and big dlls
    By kei in forum Qt Programming
    Replies: 2
    Last Post: 15th June 2009, 18:38
  5. Replies: 2
    Last Post: 22nd February 2007, 08:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.