Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QWebView with static compiled Qt

QWebView with static compiled Qt

Scheduled Pinned Locked Moved General and Desktop
6 Posts 3 Posters 5.7k 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.
  • G Offline
    G Offline
    goocreations
    wrote on last edited by
    #1

    I've recompiled Qt static (release). Now I've created a new default Qt GUI application with Qt Creator.

    When I add QT += webkit to my .pro file and compile it, everything works fine and my main window opens.

    Now When I add a QWebView to my main window, I can still compile, but when the app start it crashes with:

    @Starting C:\Qt\2010.05\qt\untitled-build-desktop\release\untitled.exe...
    C:\Qt\2010.05\qt\untitled-build-desktop\release\untitled.exe exited with code -1073741511@

    I haven't changed ANYTHING on the project except adding the QWebView and adding the statement to the project file. I also can't debug the application.

    Any idea why (I think it might have something to do with the static compilation of Qt)

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goocreations
      wrote on last edited by
      #2

      I've also noticed that when I normally compile my apps (static), I can just run the exe file, now my exe requires all the Qt libs, eg QtWebKit4.dll, QtCore4.dll, QtGui4.dll etc.

      So know my app doesn't seem like it was compile static. When I remove the QWebView widget however, I can run the exe as normally

      1 Reply Last reply
      0
      • T Offline
        T Offline
        tobias.hunger
        wrote on last edited by
        #3

        Where did you get Qt WebKit from? Did you build it yourself statically? If not then you might get the Qt libraries loaded as a dependency to Qt WebKit... which would clash with the symbols already compiled into your application and cause some strange behavior.

        You can use "dependency walker":http://www.dependencywalker.com/ on your .exe file to check which libraries that loads (and which are dragged in as dependencies to those).

        1 Reply Last reply
        0
        • G Offline
          G Offline
          goocreations
          wrote on last edited by
          #4

          I build Qt myself statically. But even if my compile exe has all depended dll libraries, it still crashes when I open it up

          1 Reply Last reply
          0
          • M Offline
            M Offline
            mabrand
            wrote on last edited by
            #5

            Webkit support for static Qt is "disabled":http://qt.gitorious.org/qt/qt/commit/4221d629e2cf37ee8c5ba7cb595b05ab8c82f113

            1 Reply Last reply
            0
            • G Offline
              G Offline
              goocreations
              wrote on last edited by
              #6

              Ahh, thanx. I thought it might be something like that

              1 Reply Last reply
              0

              • Login

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