What is your experience using web technologies (HTML, XML, CSS, JavaScript) to implement part of the functionality of a GUI application? Pros and cons, please.
There are no servers, relational databases, AJAX or session management cookies, or an existing web application, but rather a GUI application that uses web widgets (e.g. Qt WebKit ) to display and process significant parts of the user interface, taking advantage a graphical interface to achieve even richer interoperability and better integration with desktop systems.
I have already confirmed that the approach is possible using PyQt. Content can be displayed from the file system or from strings, and URL requests (images or clicks) can be captured and processed by event handlers of the form. CSS and JavaScript are supported, perhaps with some limitations.
# ... self.webView.page().setLinkDelegationPolicy( QtWebKit.QWebPage.DelegateExternalLinks ) #... class TotiMainWindow(QtGui.QMainWindow): def linkClicked(self, url): pass # events arrive here
Note. This question is different from this and this one made earlier, by the way, because there is no requirement to use web technologies in the graphical interface, but there is a requirement that the application work without a network connection, and it should integrate well with the default desktop on different platforms without previous infrastructure requirements (no .NET, Java, browsers or database servers).
Note. I posted another version of this question in PMS, but found very little experience with this approach.
Closing note
I just found most of the information I was looking for in a series of blog posts by Andre Pareis .
source share