Qt Forum

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Unsolved

    Qt 5.0 QWebView crashing problem

    General and Desktop
    2
    3
    3180
    Loading More Posts
    • 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.
    • D
      ddolby last edited by

      I am migrating from Qt 4.8.4 to Qt 5.0.1 and have run into a problem with the QWebView. In debug my application works fine with QWebView objects, but in release the application crashes when attempting to access anything on the QWebView object such as page(). So I created a small test application to eliminate any thing that the rest of my application could be doing to case the crash. But even this small test application build in release mode crashes.

      This is running on Windows 8 built as 32bit using Visual Studio 2012, as were all the Qt libraries. Here is the sample cod, the crash happens when calling webView.page():

      @
      // WebKitTest.cpp : Defines the entry point for the console application.
      //

      #include "stdafx.h"

      #include <QtWidgets>
      #include <QWebView>

      int _tmain(int , _TCHAR* [])
      {
      int tmpargc = 0;
      char *argv = NULL;
      QApplication app(tmpargc, &argv);

      QWidget mainWidget;
      QWebView webView(&mainWidget);
      webView.page();

      mainWidget.show();
      return app.exec();
      }
      @

      1 Reply Last reply Reply Quote 0
      • D
        ddolby last edited by

        I have also built the webkit browser example. When I run the debug it works, when I run the release version it crashes.

        1 Reply Last reply Reply Quote 0
        • S
          SeeR last edited by

          Same bug was reported.
          https://bugreports.qt-project.org/browse/QTBUG-30828

          1 Reply Last reply Reply Quote 0
          • First post
            Last post