Quantcast
Channel: Installation and Deployment
Viewing all articles
Browse latest Browse all 22112

Given a snippet code in QWebpage section, what to put in the main cpp file ?

$
0
0
I am reading QWebPage section in Qt docs. And I would like to test the snippet code done in this section. I wanted to try this code but i did not know how to make it completely works. I know what to put in the header file : i’ve put the declaration of the class Thumbnailer. And i’ve add the needed classes : #include <QObject> #include <QtWebKitWidgets/QWebPage> #include <QWebFrame> #include <QPainter> I’ve put the rest of the snippet code in a cpp file. There is no problem at this step, but the problem* is what to put the main cpp file to make it visible ?* Here is the link of the QWebPage class reference where the snippet code is : http://qt-project.org/doc/qt-4.8/qwebpage.html Thanks in advance for any enligtenment or help about that :)

Viewing all articles
Browse latest Browse all 22112


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>