#include <QtGui/QApplication>
#include "browser.h"
#include <QtNetwork/QSslSocket>
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
Browser b;
b.setGeometry(0,0,700,700);
b.load(QUrl("https://www.gmail.com"));
b.show();
return a.exec();
}
class Browser : public QWebView
{
Q_OBJECT
public:
explicit Browser(QWidget *parent = 0) {}
signals:
void loadFinished ( bool ok );
void loadProgress ( int progress );
void loadStarted ();
public slots:
void loadFinishedSlot ( bool ok );
void loadProgressSlot ( int progress );
void loadStartedSlot ();
};
问问题
3798 次