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. Loading qml into an area of main.qml

Loading qml into an area of main.qml

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 1.3k Views
  • 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
    Dolphin
    wrote on last edited by
    #1

    I have an application where main.qml has a subtitles bar and then an 'application' area which needs to show a qml 'screen' and the screen needs to keep the subtitle bar up to date.

    The 'application' area needs to show the qml from a dll - each actual application (email, bookreader etc) is in a dll which is all fine on the c++ side (have it working perfectly with widgets) but I just cannot fathom how to load the qml from the dll into the 'application' area. Is there a way without digging too deep into the qml (want to keep it ui only) or am I going to have to have every application have its own subtitle bar?

    1 Reply Last reply
    0
    • M Offline
      M Offline
      messi
      wrote on last edited by
      #2

      Hi Dolphin

      One solution can be with dynamic QML objects:

      http://qt-project.org/wiki/QML-Dynamic-Objects
      http://harmattan-dev.nokia.com/docs/platform-api-reference/xml/daily-docs/libqt4/qdeclarativedynamicobjects.html
      http://stackoverflow.com/questions/8266464/creating-custom-qml-objects-instances-with-qt-createqmlobject
      http://developer.blackberry.com/cascades/documentation/dev/dynamic_qml/index.html

      The other solution can be realized to get the title from a memberfunction of the MVC model.
      All public slots are accessible from QML.
      A good manual can be found here:
      http://qt.digia.com/Global/Images/Qt/Files/QtEssentialsQtQuick/qml-cpp-integration.pdf

      Happy hacking.

      Best regards

      1 Reply Last reply
      0
      • D Offline
        D Offline
        Dolphin
        wrote on last edited by
        #3

        Quick look seems like you have given me an answer, I will get on with the coding. BIG thanks

        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