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. General information regarding using plugins
Forum Updated to NodeBB v4.3 + New Features

General information regarding using plugins

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 384 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.
  • KiraK Offline
    KiraK Offline
    Kira
    wrote on last edited by aha_1980
    #1

    Hello All,
    I have various classes like camera,serialport etc.
    Is it good idea to create a separate plugins for those classes ?
    Also in the production enviroment ( software release) do we have to provide the
    plugins(dll ) separately?
    Is there any security concern related to it

    sierdzioS 1 Reply Last reply
    0
    • KiraK Kira

      Hello All,
      I have various classes like camera,serialport etc.
      Is it good idea to create a separate plugins for those classes ?
      Also in the production enviroment ( software release) do we have to provide the
      plugins(dll ) separately?
      Is there any security concern related to it

      sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      @Kira said in General information regarding using plugins:

      Is it good idea to create a separate plugins for those classes ?

      (personal opinion) I don't think so. Plugins are fine for cases where you need to dynamically support some functionality - distribute one application where users can extend the functionality by enabling / disabling plugins. Like in Qt Creator, you can have extra options added by some plugins.

      A plugin layer adds a lot of complexity to a project, though, and (in Qt) plugins often need to be recompiled for every new release, and you need to keep the plugin API stable etc. It's a lot of additional work.

      It is a good idea to keep such functionality (camera, etc.) separate, but that can be done using a library, or even well-designed classes that don't get entangled.

      Also in the production enviroment ( software release) do we have to provide the plugins(dll ) separately?

      You can bundle them inside the installer, if that's what you mean.

      Is there any security concern related to it

      Yes. Somebody can take your DLL or plugin DLL and create their own, malicious version of it. Then they could use that to access some private data, customer credentials, or even gain access to user's PC.

      (Z(:^

      KiraK 1 Reply Last reply
      5
      • sierdzioS sierdzio

        @Kira said in General information regarding using plugins:

        Is it good idea to create a separate plugins for those classes ?

        (personal opinion) I don't think so. Plugins are fine for cases where you need to dynamically support some functionality - distribute one application where users can extend the functionality by enabling / disabling plugins. Like in Qt Creator, you can have extra options added by some plugins.

        A plugin layer adds a lot of complexity to a project, though, and (in Qt) plugins often need to be recompiled for every new release, and you need to keep the plugin API stable etc. It's a lot of additional work.

        It is a good idea to keep such functionality (camera, etc.) separate, but that can be done using a library, or even well-designed classes that don't get entangled.

        Also in the production enviroment ( software release) do we have to provide the plugins(dll ) separately?

        You can bundle them inside the installer, if that's what you mean.

        Is there any security concern related to it

        Yes. Somebody can take your DLL or plugin DLL and create their own, malicious version of it. Then they could use that to access some private data, customer credentials, or even gain access to user's PC.

        KiraK Offline
        KiraK Offline
        Kira
        wrote on last edited by
        #3

        @sierdzio : @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