×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    Jul 2010
    Posts
    11

    Problem with QwebView

    I create a new project and I try this example

    #include <QApplication>
    #include <QtWebKit/QWebView>
    #include <QUrl>

    int main(int argc, char *argv[])
    {
    QApplication a(argc, argv);

    QWebView view;
    view.setStyleSheet("background-color:rgb(150,147,88); padding: 7px ; color:rgb(255,255,255)");
    view.load(QUrl("http://www.google.com"));
    view.showMaximized();

    return a.exec();
    }

    I have many errors:
    undefined reference to 'QWebView::QWebView(QWidget *)'
    undefined reference to 'QWebView::load(qUrl const &)'

    I need help, thanks

  2. #2
    Nokia Developer Champion
    Join Date
    Nov 2009
    Location
    Minnesota, USA
    Posts
    3,209

    Re: Problem with QwebView

    To link against the module, add this line to your qmake .pro file:

    QT += webkit

Similar Threads

  1. QWebView
    By atonical in forum Qt
    Replies: 1
    Last Post: 2011-02-13, 19:14
  2. QWebView problem ?
    By damodharan in forum Qt
    Replies: 3
    Last Post: 2010-06-30, 14:25
  3. problem with qt4.6 QwebView kinetic scrolling
    By mismael in forum Nokia N9
    Replies: 13
    Last Post: 2010-05-17, 08:32

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •