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. Build project as library and expose one qml file ?
Qt 6.11 is out! See what's new in the release blog

Build project as library and expose one qml file ?

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
3 Posts 2 Posters 581 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.
  • M Offline
    M Offline
    MHermann
    wrote on last edited by
    #1

    Hi all,

    I have a complex project which contains qml files and c++ files.

    1. Is it possible to create a library with qml and c++ files?
    2. Is it possible to expose only one qml file and use this qml file in an other application?

    Kind regards,
    MHermann

    raven-worxR 1 Reply Last reply
    0
    • M MHermann

      Hi all,

      I have a complex project which contains qml files and c++ files.

      1. Is it possible to create a library with qml and c++ files?
      2. Is it possible to expose only one qml file and use this qml file in an other application?

      Kind regards,
      MHermann

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

      @MHermann
      what should that library exactly do?
      Basically a library is just like any other code in your project, just that it's placed in another file which is loaded by your executable during runtime.
      So create a library project and provide the header file with the classes/methods it exposes/exports.

      See Creating shared libraries and this wiki article

      --- 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

      M 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @MHermann
        what should that library exactly do?
        Basically a library is just like any other code in your project, just that it's placed in another file which is loaded by your executable during runtime.
        So create a library project and provide the header file with the classes/methods it exposes/exports.

        See Creating shared libraries and this wiki article

        M Offline
        M Offline
        MHermann
        wrote on last edited by
        #3

        @raven-worx : Thanks. I will check the links.

        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