Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt WebKit
  4. QtScriptEngine Required for QWebFrame, QWebHitTestResult, etc?
Forum Updated to NodeBB v4.3 + New Features

QtScriptEngine Required for QWebFrame, QWebHitTestResult, etc?

Scheduled Pinned Locked Moved Qt WebKit
1 Posts 1 Posters 1.5k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • W Offline
    W Offline
    williem
    wrote on 7 Mar 2011, 17:37 last edited by
    #1

    Hello,

    I've run into an issue when I attempt to incorporate some header files.

    a few notes up front:
    --building from source using qtembeded
    --using precompiled headers
    --have a lot of modules disabled (including QtScript)

    So I've got a QWebView derivative class I was working with and I wanted to extend some of the functionality, namely mousePressEvent. Now mind you, before I started doing this, my code was building fine with no problems. So once I re-implemented this function for my QWebFrame child class, I needed to include a few new headers (QWebFrame, QWebHitTestResult). Well, when I included those headers, my code wouldn't compile because qwebframe.cpp was looking for QtScript/qscriptengine.h.

    I since QtScript was disabled, it didn't have/include any of those headers on the install.

    It turns out that qwebframe wasn't even using QScriptEngine except for an enum... So I just put in an #ifdef to include either <QtScript/qscriptengine.h> or a QScriptEngine struct with the enum that QWebFrame wanted. I also discovered the same problem in qt_instance.h that needed a similar fix.

    Is there any way around this, or is this something that is slated for the next release to fix?

    1 Reply Last reply
    0

    1/1

    7 Mar 2011, 17:37

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved