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. How will users add extra functionality in QML based plugin system?
Forum Updated to NodeBB v4.3 + New Features

How will users add extra functionality in QML based plugin system?

Scheduled Pinned Locked Moved QML and Qt Quick
6 Posts 2 Posters 1.1k 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.
  • H Offline
    H Offline
    Hedge
    wrote on last edited by
    #1

    I've got a small application where users may create their own plugins as QML-files.
    These plugins get notification upon certain events and their user-interfaces are displayed one-by-one in a TabView.

    Some plugins however need functionality which can't be provided via QML like writing to files.
    How would I enable my users to extend the functionality as they please?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      If you don't want them to write anything else than QML you'll have to provide them with you own set of QML extensions they can use to extend your application.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • H Offline
        H Offline
        Hedge
        wrote on last edited by
        #3

        I do want them to write the other stuff too but I don't know how I'd enable them to do so.
        Can you point me in the right direction?

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          Well, document your API, provide them with examples i.e. a mini SDK for your application. One thing that can be useful skeleton projects to create the plugins

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • H Offline
            H Offline
            Hedge
            wrote on last edited by
            #5

            Yes I will do that but my problem is a technical one.

            My users can already load their own QML-files but I have no clue myself how they can extend them with the functions they need (which aren't available via QML)
            My application is just a binary loading these QML files, providing some data for the plugins and showing it.

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Since they will need a library to link against, you have to separate your application in tow: library and main application. Your users will then link to that library, when they want to extend your application

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              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