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. Can Qt host WPF controls?

Can Qt host WPF controls?

Scheduled Pinned Locked Moved General and Desktop
12 Posts 4 Posters 10.6k 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.
  • D Offline
    D Offline
    DenisKormalev
    wrote on last edited by
    #3

    I'm not a windows guy and totally not a .net guy. But as a wild guess: maybe C# bindings will help you in this (Qyoto)?

    1 Reply Last reply
    0
    • V Offline
      V Offline
      Vertexwahn
      wrote on last edited by
      #4

      I search a bit and found this: http://www.netframeworkdev.com/windows-presentation-foundation-wpf/can-win32-cpp-host-wpf-without-the-clr-switch-86865.shtml

      It seems like you need some COM/ActiveX magic to get it done without managed C++ (/clr switch)

      maybe someday someone will provide a QWPFHostWidget ...

      1 Reply Last reply
      0
      • _ Offline
        _ Offline
        _pisees_
        wrote on last edited by
        #5

        @denis, as I understand Qyoto makes it possible to develop Qt and KDE applications using C#, or any other .NET language (see http://techbase.kde.org/Development/Languages/Qyoto). In other words for .NET to host Qt widgets, but I don't think the other way, Qt hosting .NET/WPF widgets. Is that others understanding as well?

        Also, is Qyoto stable enough for an ISV with millions of lines of Qt code to build strategy for integration with .NET on?

        @vertexwahn, thanks I will look in to that. Since Qt is pure Win32 then if Win32 can host WPF should work?

        Can Qt host other types of controls such as ActiveX controls?

        Thanks, Kurt

        1 Reply Last reply
        0
        • _ Offline
          _ Offline
          _pisees_
          wrote on last edited by
          #6

          The documentation "Dot Net Example (ActiveQt)", http://developer.qt.nokia.com/doc/qt-4.7/activeqt-dotnet.html , says that "If you need to combine Qt and Win Forms widgets in the same application, you might want to use the higher-level QtWinForms Solution instead." But QtWinForms link does not work, although I found this, http://doc.trolltech.com/solutions/4/qtwinforms/qtclock-example.html

          Where can I find QtWinForms?

          The sample seems to leverage QtWinFormsUtils, so like you said @vertexwahn, perhaps if had QtWPFHostWidget or QtWPFUtils would simplify hosting of WPF in Qt.

          1 Reply Last reply
          0
          • _ Offline
            _ Offline
            _pisees_
            wrote on last edited by
            #7

            [quote author="pisees" date="1308182380"] Can Qt host other types of controls such as ActiveX controls?[/quote]

            Looks like yes, http://developer.qt.nokia.com/doc/qt-4.7/qt-activex.html

            1 Reply Last reply
            0
            • V Offline
              V Offline
              Vertexwahn
              wrote on last edited by
              #8

              If you can host a WPF control in a native Win32 application it should also work in Qt.

              1 Reply Last reply
              0
              • G Offline
                G Offline
                giesbert
                wrote on last edited by
                #9

                The same discussion happens here: "Where can I find QtWinForms Solution":http://developer.qt.nokia.com/forums/viewthread/6839/

                Nokia Certified Qt Specialist.
                Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                1 Reply Last reply
                0
                • _ Offline
                  _ Offline
                  _pisees_
                  wrote on last edited by
                  #10

                  [quote author="Gerolf" date="1308222452"]The same discussion happens here: "Where can I find QtWinForms Solution":http://developer.qt.nokia.com/forums/viewthread/6839/[/quote]

                  The above reference indicates that ActiveQt supports hosting Windows Forms. Could it not then also support WPF?

                  1 Reply Last reply
                  0
                  • G Offline
                    G Offline
                    giesbert
                    wrote on last edited by
                    #11

                    ActiveQt supports COM, and you can host windows forms as COM objects. So you can host any COM obejsct and ActiveX objects inside it.

                    Nokia Certified Qt Specialist.
                    Programming Is Like Sex: One mistake and you have to support it for the rest of your life. (Michael Sinz)

                    1 Reply Last reply
                    0
                    • V Offline
                      V Offline
                      Vertexwahn
                      wrote on last edited by
                      #12

                      Maybe this can help you
                      http://www.codeproject.com/KB/toolbars/Ribbon.aspx

                      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