Develop C ++ Qt application GUI interfaces in HTML + javascript?

We are working on a Qt application that we ultimately want to move to the Internet to some extent. For a smoother transition, consider developing user interfaces using QtWebKit in HTML / javascript. Later we want to reuse these user interface elements in a web application when we are there.

Does this sound like a meaningful idea? How much harder will it be to develop user interfaces in HTML / Javascript vs QtGui? Is this a common practice or not? Are there any pitfalls we should know about?

+6
user-interface qt webkit
source share
2 answers

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.

+3
source share

The QtWebKit bridge describes how you can combine a WebKit-based interface with C ++ business logic. There was also talk about this at Qt DevDays; A video of the talks should appear here Real Soon Now.

+2
source share

All Articles