Results 1 to 8 of 8

Thread: QWebView Crashes APP on Startup

  1. #1
    Join Date
    Jun 2010
    Posts
    41
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default QWebView Crashes APP on Startup

    I am incorporating QWebView into my app. My IDE is MSVS 2008 and QT 4.6.3

    When I compile my app, it works great in the IDE debugg/release mode but when I go to execute the build files, it crashes on startup. I have all my needed dlls visible.

    pgcapp..jpg
    Last edited by harleyskater; 29th June 2010 at 02:05.

  2. #2
    Join Date
    Jun 2010
    Posts
    41
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView Crashes APP on Startup

    I just built a simple QT app with just a webview pointing to a webpage, its all that it does. Same result.

    I put the project here http://www.mediafire.com/?njtw5dzj0ji

    I am starting to think I might be in the wrong C++ IDE for QT. What is the best IDE for QT?

  3. #3
    Join Date
    Mar 2008
    Location
    Houston, Texas, USA
    Posts
    277
    Thanks
    9
    Thanked 17 Times in 17 Posts
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows Maemo/MeeGo

    Default Re: QWebView Crashes APP on Startup

    It doesn't matter the IDE tbh. You should try updating your Qt to the latest version 4.6.3 though.
    Qt-4.7.3 | Gentoo ~amd64 | KDE-4.7
    Aki IRC Client for KDE4 | Qt Documentation

  4. #4
    Join Date
    Jun 2010
    Posts
    41
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView Crashes APP on Startup

    I actually have 4.6.3. sorry about that. and i have MSVS 2008 sp1. I still don't understand why its happening though. I took these steps to set up my project.

    create project-> QT Application
    project settings-> include libraries ; Core, GUI, SQL, Network, Webkit
    precompiled headers not checked

    switch mode to Release
    open the UI file in QT Designer
    Drag and drop the QWebview
    ADD the URL
    Build
    in the Release DIR add the DLL's for: Core, GUI, SQL, Network, Webkit
    execute and crash

    I have been working in QT for about 3 weeks and have apps working with qt UI's, pushbuttons, stackedwidgets and all of that works and builds and executes.
    behind that is code for connecting to a mysql db and checking login credentials, if good, switching pages in the stackedwidget to this webview.

    I have 2 more things I want to do with this app and then I'm done and those 2 things are working inside my IDE and not from the build. Network/FTP upload file and just displaying a simple html table from a website.

  5. #5
    Join Date
    Jun 2010
    Posts
    41
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView Crashes APP on Startup

    I have been testing things to try to find out whats going on, and I am still stuck.

    I did find out that if I put the QWebview object in the GUI and have the default about:blank it works, if I point it to a local file it works in the IDE but not the build outside the IDE and same thing with a simple web url, it crashes instantly

  6. #6
    Join Date
    Jun 2010
    Posts
    41
    Thanks
    8
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView Crashes APP on Startup

    Boo, no answer here either :*(

  7. #7
    Join Date
    May 2010
    Location
    Romania
    Posts
    1,021
    Thanks
    62
    Thanked 260 Times in 246 Posts
    Qt products
    Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: QWebView Crashes APP on Startup

    What's the error?

    I have tried the project you upload and it doesn't crash (didn't tried it in the same conditions, i don't have VS integration, so i used Qt Creator from the latest windows open source SDK)

  8. #8
    Join Date
    Apr 2009
    Posts
    10
    Thanks
    2
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QWebView Crashes APP on Startup

    It began to happen with me too...
    First occurrence was after updating the Qt SDK to 4.6.3, the error follows:
    Qt Code:
    1. QWebView *viewer = new QWebView(this); // works fine
    2. viewer->load(QLink("www.qtcentre.org")); // crashes
    To copy to clipboard, switch view to plain text mode 

    I'm looking forward to a solution, if anybody have it I would appreciate it very much.

Similar Threads

  1. Qt app in linux startup
    By qtlinuxnewbie in forum Newbie
    Replies: 8
    Last Post: 2nd March 2010, 18:37
  2. QT Creator crashed on startup
    By eloos in forum Qt Tools
    Replies: 13
    Last Post: 20th November 2009, 08:50
  3. Switching between console and GUI on startup
    By EricF in forum Qt Programming
    Replies: 4
    Last Post: 10th January 2008, 19:03
  4. How to get empty mainwidget at startup
    By Morea in forum Qt Tools
    Replies: 1
    Last Post: 10th March 2006, 22:32
  5. QToolBar go away! On startup anyway.
    By bitChanger in forum Qt Programming
    Replies: 1
    Last Post: 10th February 2006, 18:22

Tags for this Thread

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.