This is apparently a common practice, but I highly recommend against it. The desktop application is not a web browser. Design your logic the way you want and build your Qt interface so that it separates from your log. When you want to create a web version, rebuild the user interface from scratch to be a browser-based client.
Falmarri
source share