Hide source of HTML5 applications?



  • Hi, I just tried compiled the basic HTML5 application to try it out, but on Mac I can just click 'Show Package Contents' to get the HTML source code. As I want to develop a closed source application, is it possible to hide the source code in a way or should I just suck it up and learn C++?



  • There is no way to 'hide' your code in a way that it cannot be restored, because it needs to be present in a readable way to be interpreted by the HTML rendering engine.

    You can, however, complicate the extraction process by using a "resource":http://doc.qt.digia.com/qt/resources.html or encyrption. But this is just a barrier, and by no means a protection.



  • [quote author="Lukas Geyer" date="1358330592"]There is no way to 'hide' your code in a way that it cannot be restored, because it needs to be present in a readable way to be interpreted by the HTML rendering engine.

    You can, however, complicate the extraction process by using a "resource":http://doc.qt.digia.com/qt/resources.html or encyrption. But this is just a barrier, and by no means a protection.[/quote]

    That's what I thought, thanks. I'm going to create the interface in HTML, but load the content with C++.


Log in to reply
 

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