Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Is there any way to embed ActiveX controls in QQuickWindow on Windows platform?
Forum Updated to NodeBB v4.3 + New Features

Is there any way to embed ActiveX controls in QQuickWindow on Windows platform?

Scheduled Pinned Locked Moved QML and Qt Quick
5 Posts 3 Posters 1.9k 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.
  • X Offline
    X Offline
    xth21
    wrote on last edited by
    #1

    In my QML application,I need to show some old ActiveX controls which had lost source code,and I found a very usefull class QAxWidget,but it can only work with QWidget-based application.

    Is there any way to embed ActiveX controls in QML-based application?
    If no,what about future versions?
    !http://images-fast.digu365.com/f1fad2df57788a879613d6875837df47_0002.jpg(Please help me!)!

    1 Reply Last reply
    0
    • V Offline
      V Offline
      vikaspachdha
      wrote on last edited by
      #2

      Yo can add a QQuickView in your widget based application and you can add widgets to QML scene. Also you can Inherit QQuickItem to do the job for you.

      1 Reply Last reply
      0
      • p3c0P Offline
        p3c0P Offline
        p3c0
        Moderators
        wrote on last edited by
        #3

        Hi,

        Have a look at "QQuickWidget":http://qt-project.org/doc/qt-5/qquickwidget.html#details.

        157

        1 Reply Last reply
        0
        • X Offline
          X Offline
          xth21
          wrote on last edited by
          #4

          Thanks above!
          But QQuickWidget can not solve my problem.
          QQuickWidget can only make the QML scene and the QAxWidget be sons of the same QWidget-based application,the QAxWidget is a brother beside the QML scene,not part of.
          I need the ActiveX controls be a part of QML scene ,working like the QML type WebView of QtWebkit 3.0,displaying in the area of QML scene.
          Did I just ask for too much?

          1 Reply Last reply
          0
          • p3c0P Offline
            p3c0P Offline
            p3c0
            Moderators
            wrote on last edited by
            #5

            I don't think there's a pure QML way of doing this.

            157

            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