title: Getting runtime errors with QWebPage
body: <p>I have created a Qt GUI application but I haven't touched anything regarding the GUI. I have modified mainwindow.cpp and the project file.</p>
  
  <p>mainwindow.cpp:</p>
  
  <pre><code>#include "mainwindow.h"
  #include "ui_mainwindow.h"
  #include &lt;QWebPage&gt;
  #include &lt;QWebFrame&gt;
  
  QWebPage page;
  
  MainWindow::MainWindow(QWidget *parent) :
      QMainWindow(parent),
      ui(new Ui::MainWindow)
  {
      ui-&gt;setupUi(this);
  
      connect(page.mainFrame(), SIGNAL(loadFinished(bool)), this, SLOT(pageLoaded1(bool)));
      QUrl router("http://192.168.1.1");
      page.mainFrame()-&gt;load(router);
  }
  
  MainWindow::~MainWindow()
  {
      delete ui;
  }
  </code></pre>
  
  <p>untitled.pro:</p>
  
  <pre><code>#-------------------------------------------------
  #
  # Project created by QtCreator 2013-05-01T23:48:00
  #
  #-------------------------------------------------
  
  QT       += core gui webkit webkitwidgets
  
  greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
  
  TARGET = untitled
  TEMPLATE = app
  
  
  SOURCES += main.cpp\
          mainwindow.cpp
  
  HEADERS  += mainwindow.h
  
  FORMS    += mainwindow.ui
  </code></pre>
  
  <p>main.cpp:</p>
  
  <pre><code>#include "mainwindow.h"
  #include &lt;QApplication&gt;
  
  int main(int argc, char *argv[])
  {
      QApplication a(argc, argv);
      MainWindow w;
      w.show();
  
      return a.exec();
  }
  </code></pre>
  
  <p>Error:</p>
  
  <pre><code>---------------------------
  Microsoft Visual C++ Debug Library
  ---------------------------
  Debug Error!
  
  Program: ...tled-Desktop_Qt_5_0_2_MSVC2010_32bit-Debug\debug\untitled.exe
  Module: 5.0.2
  File: global\qglobal.cpp
  Line: 1977
  
  ASSERT: "!"No style available without QApplication!"" in file kernel\qapplication.cpp, line 962
  
  (Press Retry to debug the application)
  ---------------------------
  Abort   Retry   Ignore   
  ---------------------------
  </code></pre>
  
  <p>Extra characters are inserted here to bypass character requirement.</p>