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. Protect my QT library code

Protect my QT library code

Scheduled Pinned Locked Moved Unsolved General and Desktop
5 Posts 5 Posters 1.3k 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.
  • J Offline
    J Offline
    Jitendra Nandiya
    wrote on last edited by
    #1

    I want to make the library in QT but I want know the library code is protected or not ?
    Means no one can read my code, I want to secure my code from client.

    raven-worxR JonBJ 2 Replies Last reply
    0
    • J Jitendra Nandiya

      I want to make the library in QT but I want know the library code is protected or not ?
      Means no one can read my code, I want to secure my code from client.

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

      @Jitendra-Nandiya said in Protect my QT library code:

      I want to make the library in QT but I want know the library code is protected or not ?

      since you compile it it won't be accessible in plain-text anyway.
      If i got you right?

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

      1 Reply Last reply
      3
      • J Jitendra Nandiya

        I want to make the library in QT but I want know the library code is protected or not ?
        Means no one can read my code, I want to secure my code from client.

        JonBJ Offline
        JonBJ Offline
        JonB
        wrote on last edited by
        #3

        @Jitendra-Nandiya
        Don't compile for debug and release that, and if you're Windows don't send out any .pdb (or other debug-related) file :) But in outline, no, your source code is not "embedded" in the compiled .lib file.

        1 Reply Last reply
        1
        • VRoninV Offline
          VRoninV Offline
          VRonin
          wrote on last edited by
          #4

          No code is immune from reverse engineering. Software companies have been fighting a loosing battle against disassembly piracy for years. That said, unless your program is REALLY simple, there is no way to get sources back from a compiled static or dynamic library.

          By the nature of c/cpp you'll still have to distribute include headers but you can easily hide 99% of the implementation (the notable exception are templates). You can use opaque pointers (see http://wiki.qt.io/D-Pointer) for that

          "La mort n'est rien, mais vivre vaincu et sans gloire, c'est mourir tous les jours"
          ~Napoleon Bonaparte

          On a crusade to banish setIndexWidget() from the holy land of Qt

          1 Reply Last reply
          2
          • C Offline
            C Offline
            Charlie_Hdz
            wrote on last edited by
            #5

            Dynamic Modules (.dll) are able to be created in Qt... Give the functionality of a module and you can even deliver it to customers without letting them to see the source code...

            There is a way to do it in Qt Creator, instead of creating an application, you would create a library (you can also change it in the .pro file). The major difference between application and library is that the app has a main.cpp for execution.

            Kind Regards,

            Carlos

            Kind Regards,
            Enrique Hernandez
            gearstech.com.mx
            chernandez@gearstech.com.mx

            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