Created
August 23, 2012 07:15
-
-
Save speakman/3433758 to your computer and use it in GitHub Desktop.
Minimal Web Browser
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TARGET = extremely-simple-browser | |
QT += core gui webkit network | |
TEMPLATE = app | |
SOURCES += main.cpp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <QApplication> | |
#include <QWebView> | |
#include <QUrl> | |
int main(int argc, char *argv[]) | |
{ | |
QApplication a(argc, argv); | |
QWebView view; | |
view.load(QUrl("http://www.google.com")); | |
view.show(); | |
return a.exec(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment