Protect my QT library code



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


  • Moderators

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



  • @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.



  • 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



  • 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


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.