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 it possible to make QML application embed in another Qt app or another QML app?
Qt 6.11 is out! See what's new in the release blog

Is it possible to make QML application embed in another Qt app or another QML app?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
5 Posts 2 Posters 1.8k Views 2 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.
  • AlienA Offline
    AlienA Offline
    Alien
    wrote on last edited by Alien
    #1

    Hi,

    Is it possible to make QML application embed in another Qt app or QML app?
    Something like Microsoft COM+ or like a reusable component?
    I've read :
    https://www.ics.com/blog/combining-qt-widgets-and-qml-qwidgetcreatewindowcontainer
    but I want to use QML application as a library inside another QT app.

    raven-worxR 1 Reply Last reply
    0
    • AlienA Alien

      Hi,

      Is it possible to make QML application embed in another Qt app or QML app?
      Something like Microsoft COM+ or like a reusable component?
      I've read :
      https://www.ics.com/blog/combining-qt-widgets-and-qml-qwidgetcreatewindowcontainer
      but I want to use QML application as a library inside another QT app.

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @Alien
      sure, there are serveral ways. What are your exacty requirements? For example you can write a custom Qt plugin/lib and return a whole QML code, which gets loaded by a QML view.

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      AlienA 1 Reply Last reply
      1
      • raven-worxR raven-worx

        @Alien
        sure, there are serveral ways. What are your exacty requirements? For example you can write a custom Qt plugin/lib and return a whole QML code, which gets loaded by a QML view.

        AlienA Offline
        AlienA Offline
        Alien
        wrote on last edited by
        #3

        @raven-worx,
        What do you mean by "requirements" is it cause to change the way I have to use?
        And how many ways are there exist for that?

        raven-worxR 1 Reply Last reply
        0
        • AlienA Alien

          @raven-worx,
          What do you mean by "requirements" is it cause to change the way I have to use?
          And how many ways are there exist for that?

          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by
          #4

          @Alien
          as i said there are several ways.
          By being more specific with your requirements (how you exactly want it to be used) some may work better others don't.
          What do you want to offer?
          Do you plan to use it just for yourself? Or a public library?

          For example you can create a simple Qt plugin and create a QQmlView with the application already loaded. Thus it can be embedded in an QtWidgets application.
          Or do you want your (QML) application be used in another QML app? This way you might want to create a QML plugin.

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          AlienA 1 Reply Last reply
          2
          • raven-worxR raven-worx

            @Alien
            as i said there are several ways.
            By being more specific with your requirements (how you exactly want it to be used) some may work better others don't.
            What do you want to offer?
            Do you plan to use it just for yourself? Or a public library?

            For example you can create a simple Qt plugin and create a QQmlView with the application already loaded. Thus it can be embedded in an QtWidgets application.
            Or do you want your (QML) application be used in another QML app? This way you might want to create a QML plugin.

            AlienA Offline
            AlienA Offline
            Alien
            wrote on last edited by
            #5

            @raven-worx ,
            Thanks for your reply I get your point.

            Best regards,
            Alien

            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