Results 1 to 4 of 4

Thread: Visual Studio 2010 and QWebView

  1. #1
    Join Date
    May 2012
    Posts
    99
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 3 Times in 3 Posts

    Question Visual Studio 2010 and QWebView

    Hi,

    I'm trying to compile a project in Visual Studio 2010 that uses the QWebView class. When I try to compile, I get the next error: cannot open source file "QWebView".

    I'm using Qt 4.8.0.

    What's wrong?

    Regards.

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Wiki edits
    17

    Default Re: Visual Studio 2010 and QWebView

    Your PRO file is probably missing:
    Qt Code:
    1. QT += webkit
    To copy to clipboard, switch view to plain text mode 

    I do not know how you arrange that if you are using the Visual Studio plugin.

  3. #3
    Join Date
    May 2012
    Posts
    99
    Qt products
    Qt4
    Platforms
    Windows
    Thanked 3 Times in 3 Posts

    Default Re: Visual Studio 2010 and QWebView

    I'm using Visual Studio, I don't have .pro file.

    I've solved the issue adding C:\Qt\4.8.0\include\QtWebKit in 'Additional Include Directories' of C/C++->General and QtWebKit4.lib in 'Additional Dependencies' of Linker->General in the project configuration properties.
    Last edited by qt_developer; 11th July 2014 at 10:44.

  4. #4
    Join Date
    Mar 2008
    Location
    Kraków, Poland
    Posts
    1,540
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows
    Thanked 284 Times in 279 Posts

    Default Re: Visual Studio 2010 and QWebView

    Install Visual Studio Add-in and then you will have the tools to properly define Qt projects.

Similar Threads

  1. Visual Studio 2010 Add-in
    By lipun4u in forum Newbie
    Replies: 1
    Last Post: 25th April 2013, 00:20
  2. Visual studio 2010 interference
    By The physicist in forum Installation and Deployment
    Replies: 3
    Last Post: 14th January 2011, 10:43
  3. Qt and Visual Studio 2010
    By SixDegrees in forum Qt Programming
    Replies: 6
    Last Post: 15th November 2010, 20:56
  4. Visual Studio Plugin (1.1.6) crashes Visual Studio (2010)
    By mboeni in forum Installation and Deployment
    Replies: 0
    Last Post: 11th October 2010, 17:46
  5. Plan for Visual Studio 2010 (MSVC 2010)?
    By Vinzz in forum Qt Programming
    Replies: 1
    Last Post: 18th April 2010, 18:42

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.