Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Use of json file in plugin for own application
Forum Update on Monday, May 27th 2025

Use of json file in plugin for own application

Scheduled Pinned Locked Moved Solved General and Desktop
7 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.
  • H Offline
    H Offline
    hjohn
    wrote on 5 Jun 2018, 06:35 last edited by hjohn 6 May 2018, 06:36
    #1

    I know that json file contain metadata of plugin.but in QDocument examples echoplugin & plug and pain,the json file is empty and
    it works fine,as i know that the metadata is required to access the plugin outside of project.

    R 1 Reply Last reply 5 Jun 2018, 06:40
    0
    • H hjohn
      5 Jun 2018, 06:35

      I know that json file contain metadata of plugin.but in QDocument examples echoplugin & plug and pain,the json file is empty and
      it works fine,as i know that the metadata is required to access the plugin outside of project.

      R Offline
      R Offline
      raven-worx
      Moderators
      wrote on 5 Jun 2018, 06:40 last edited by
      #2

      @hjohn
      and the question is?

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

      H 1 Reply Last reply 5 Jun 2018, 10:28
      0
      • R raven-worx
        5 Jun 2018, 06:40

        @hjohn
        and the question is?

        H Offline
        H Offline
        hjohn
        wrote on 5 Jun 2018, 10:28 last edited by
        #3

        @raven-worx Is it necessary to create .json file,if so,then in which case

        R 1 Reply Last reply 5 Jun 2018, 10:53
        0
        • H hjohn
          5 Jun 2018, 10:28

          @raven-worx Is it necessary to create .json file,if so,then in which case

          R Offline
          R Offline
          raven-worx
          Moderators
          wrote on 5 Jun 2018, 10:53 last edited by raven-worx 6 May 2018, 10:56
          #4

          @hjohn
          basically it can be left empty or left out completely.
          In case you want to load a bunch of your custom plugins you can get the data (compiled into the plugin) using QPluginLoader::metaData()

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

          H 1 Reply Last reply 8 Jun 2018, 17:29
          3
          • R raven-worx
            5 Jun 2018, 10:53

            @hjohn
            basically it can be left empty or left out completely.
            In case you want to load a bunch of your custom plugins you can get the data (compiled into the plugin) using QPluginLoader::metaData()

            H Offline
            H Offline
            hjohn
            wrote on 8 Jun 2018, 17:29 last edited by hjohn 6 Aug 2018, 17:30
            #5

            @raven-worx json file contain meta data.but in Which situation u have to mention meta data of plugin in .json file.
            Is it just kind of only information to just knowledge or we have to declare it before loading plugins.

            R 1 Reply Last reply 8 Jun 2018, 18:44
            0
            • H hjohn
              8 Jun 2018, 17:29

              @raven-worx json file contain meta data.but in Which situation u have to mention meta data of plugin in .json file.
              Is it just kind of only information to just knowledge or we have to declare it before loading plugins.

              R Offline
              R Offline
              raven-worx
              Moderators
              wrote on 8 Jun 2018, 18:44 last edited by
              #6

              @hjohn
              Again, you dont have to. When you dont know what to put in there you dont need it even more ;)
              This can be of an aid if you need additional data to identfy a plugin without loading it.

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

              H 1 Reply Last reply 9 Jun 2018, 04:49
              0
              • R raven-worx
                8 Jun 2018, 18:44

                @hjohn
                Again, you dont have to. When you dont know what to put in there you dont need it even more ;)
                This can be of an aid if you need additional data to identfy a plugin without loading it.

                H Offline
                H Offline
                hjohn
                wrote on 9 Jun 2018, 04:49 last edited by
                #7

                @raven-worx okay thanks..:)

                1 Reply Last reply
                0

                1/7

                5 Jun 2018, 06:35

                • Login

                • Login or register to search.
                1 out of 7
                • First post
                  1/7
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved