Client solution for embedding QtWebKit in HT for Web

Source: Internet
Author: User

Client solution for embedding QtWebKit in HT for Web

HTML5 is powerful enough, but many applications still need independent Desktop client solutions. After all, the ability to operate local files and other functions is still not completely replaced by many tool software in the short term.

Recently Adobe released http://brackets.io is also similar to the application, Brackets to describe themselves: An open source code editor for the web, written in JavaScript, HTML and CSS. in the past, such a description was hard to imagine as an editor tool. Today, the use of WebKit nested shell solutions has made such applications a mainstream.

Adobe's Brackets uses its own blockchain:

Note: The brackets-shell is only maintained for use by the Brackets project. although some people have definitely had success using it as an app shell for other projects, we don't provide any official support for that and we haven't done a ton of work to make the app shell easily reusable. when people will likely find it easier to use a project like node-webkit, which is more generic by design.

Typically, applications that use https://github.com/rogerwang/node-webkit,HT for Web can also be packaged into client applications through node-webkit, as shown in:

Recently, users have encountered a solution to embed HT for Web into QtWebKit through Qt, but encountered a strange problem that the display is normal but cannot be operated by the mouse, after some hard work, we found that HT had identified QtWebKit In the desktop environment as a touchable mobile terminal environment, and how to correctly judge the interaction environment between Touch and Mouse was a huge task, refer to Region.

Fortunately, HT reserves a configurable solution. You can set htconfig = {Default: {isTouchable: false} before introducing the ht. js package, and force the HT to use a regular mouse event for processing. This is because HT uses the "ontouchend" in document scheme to determine the internal structure. Generally, the desktop environment is undefined and the mobile terminal is null, qtWebKit is also null in the desktop environment. As a result, HT uses the Touch listening event to cause the operation to fail. After setting htconfig, everything is normal!

HTML5 uses WebKit to embed and package cost applications. Various client technologies throughout the world are becoming more integrated, and countless client solutions are changing many ideas and architectures, recently, JavaScript for Automation in wwdc2014 was a very important highlight. The entire mac osx System and Application can be called through JavaScrpit. In the early days, windows was popularized by many applications, after Apple's mobile terminal is fixed, it will use JavaScript for Automation to attract more professional client developers, and may not be aware of the desktop sector.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.