QT, toss a few days-----about the use of Qwebengine

Source: Internet
Author: User
Tags what header

A few days ago, no, it should have been a long time ago, looking for a solution to write desktop applications in a html5+css+javascript way, why? Because the front end of the set can be arbitrary writing style interface ah, Uh. Actually I just want to use some of the new features of H5. This is the background, the following is the toss Process.

At first, I wanted to use qt. But found that the new version to 5.7.0 do have a technology, from WebKit to webengine, see Online said WebKit is ok, but I think, since there are new things out, that must have it out of the truth, so decided to use webengine, however, toss half a day, found himself used MinGW that set at all Not with Webengine. Then look online said msvc version has, well, no way, and went under a msvc version of the installed, see online said with Vs+msvc seems to be ok, then a new version of the VS bar, so to download the elder brother vs2015, installed, installed, loaded a night the second day to see installed, but, as if what is wrong, How did my C drive shrink by nearly 30 g? In the heart of a panic, think of their own clearly selected is the other disk, how will still occupy so much system disk space? At this time I began to stump, think my C disk must have enough space to empty out, and then start various uninstall various Delete. Finally accidentally also the original 2010 of some documents to delete ... finally, only the lovely vs2013 can be used. well, began to install the 2013 version, the heart warned himself this time even if C is full of no matter. Finally fortunately, only a few g of space. Toss the software also gave me a toss for two days, I was really stupid to get home. Let's start with the Chase.

At the beginning, I read an article, which I can't remember exactly. anyway, the introduction of several solutions in this area, I remember there are ltframe, CEF and so on, maybe my vs2013 version is different from others, will always report some link error errors, and both of these are called through C + + windows api, and there is no very detailed interface description , as for why I say So. It may be that QT is spoiled, Qt's help document is too good to use ah, and interface naming what is also very simple and easy to understand. well, no way, too much food. Last night before bedtime in the know to see Node_webkit.js seems to meet my needs, and have a very high evaluation, originally wanted to try today, but today I do not know which rib smoked and began to make a QT (true love), look back to have time to get it, Below is a record of the steps I used to test webenginewidgets with Msvc. Vs+msvc will not say, according to the online example to do, you can follow the blog said. I really like Qt Creator, must get out, so the following is the QT creator+ MSVC 5.7.0 this way under the Qwebengineview module Use.

1. Preliminary work, Download qt-opensource-windows-x86-msvc2013-5.7.0.exe, install after download, the next step is Ok.

2. The creator under the Tools\qtcreator\bin in the installation directory is the artifact I want to use.

3. Create a new project

4. What header files are required to check Qwebwidget

5, try to do

6. After the build found, eh? There's nothing wrong with that?! well, it worked out Once.

7, no, I'm Going to reproduce the mistake, wait a Minute.

。。。。

。。。

8. ok, I would like to say, at the beginning, I can not find XXX.h, if QT + + webenginewidgets add still error, then the build directory to delete all the files, and then right click on the project Qmake or re-build it, you know how I do it.

I'm putting webenginewidgets in the form of an external library.

Add to the project, and then execute the qmake out.

I tried to comment it Out.

Because before the qmake, comments and re-build can pass, at this time all the files under the building directory (mainly Makefile) deleted, then execute qmake or build the project will be error, like This:

At this point I cancel the comment, execute qmake and then build the error Disappears.

More chaotic, anyway, success is the ~

QT, toss a few days-----about the use of Qwebengine

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.