Results 1 to 5 of 5

Thread: WtWebKit Setting? Please help!

  1. #1
    Join Date
    Oct 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default WtWebKit Setting? Please help!

    I am working through various Qt examples on the internet, in order to familiarise myself with the platform.

    any how, I have been looking at the "fancybrowser" example at the following website : http://doc.qt.nokia.com/stable/webkit-fancybrowser.html

    It basically shows how to make a simple web browser. It runs nicely and I am happy with it, except it doesn't seem to do certain things, Ajax seems to be disabled, possibly as a result of javascript being disabled? I would like to have this running in a way that it is capable of running web 2.0 sites. Does anyone know what changes I would need to make?

    I know it is supposed to be enabled by default, but I can't seem to get things like facebook to run properly... So I am guessing it is JS or Scripting related?

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: WtWebKit Setting? Please help!

    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  3. #3
    Join Date
    Oct 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QtWebKit Setting? Please help!

    is there a chance you could please give me an example of how to use this? I have tried reading the document and haven't managed to produce a line of code that Qt likes.

  4. #4
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,376
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    4
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QtWebKit Setting? Please help!

    Qt Code:
    1. QWebSettings::globalSettings()->setAttribute(QWebSettings::JavascriptEnabled, true);
    To copy to clipboard, switch view to plain text mode 
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  5. #5
    Join Date
    Oct 2011
    Posts
    7
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: WtWebKit Setting? Please help!

    Sorry for the late reply, thanks! I will give this a run when I head home from work tonight

    Much appreciated.

Similar Threads

  1. Layout setting
    By anshumanBorah in forum Qt Programming
    Replies: 1
    Last Post: 13th April 2011, 12:59
  2. Dpi setting on MAC OS X
    By nikhil in forum Qt Programming
    Replies: 0
    Last Post: 26th August 2010, 09:55
  3. help setting up qt4 ui from qt3
    By illuzioner in forum Qt Programming
    Replies: 3
    Last Post: 24th June 2007, 05:16
  4. form setting
    By mickey in forum Qt Tools
    Replies: 5
    Last Post: 27th September 2006, 01:28

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.