#include "webkittest.h" #include #include int main(int argc, char *argv[]) { QApplication a(argc, argv); a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); QUrl url; if (argc > 1) url = QUrl(argv[1]); else url = QUrl("http://132.230.4.3/webkitTest.html"); webkitTest *w = new webkitTest(0, url); //w.setUrl(url); w->show(); return a.exec(); }