Results 1 to 3 of 3

Thread: Using QWebEnginePage in a console app crashes my program.

  1. #1
    Join Date
    Jul 2012
    Posts
    201
    Thanks
    26
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Windows

    Default Using QWebEnginePage in a console app crashes my program.

    Hi there guys. After hours of searching the net about why my program was crashing I finally found a thread that says you can't use QWebEnginePage in a console app without changing QCoreApplication to QApplication, so I did that and that solved the crashing problem. My program is multi-threaded and the QWebEnginePage object runs on one of the threads. Now, when I run the program I get the attached error in my console output.thread_error.jpg How can I resolve this?

  2. #2
    Join Date
    Jan 2008
    Location
    Alameda, CA, USA
    Posts
    5,230
    Thanks
    302
    Thanked 864 Times in 851 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Using QWebEnginePage in a console app crashes my program.

    This error will occur if you try to create a QWidget-based class prior to instantiating the QApplication instance. If you are creating your QWebEnginePage in this way, that's probably the source of the error.
    <=== The Great Pumpkin says ===>
    Please use CODE tags when posting source code so it is more readable. Click "Go Advanced" and then the "#" icon to insert the tags. Paste your code between them.

  3. #3
    Join Date
    Jan 2006
    Location
    Graz, Austria
    Posts
    8,416
    Thanks
    37
    Thanked 1,544 Times in 1,494 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Using QWebEnginePage in a console app crashes my program.

    Hence me recommending multi-processes for that in the other thread

    Cheers,
    _

Similar Threads

  1. Using exceptions in Qt 5.1.1 crashes the program
    By themagician in forum Newbie
    Replies: 0
    Last Post: 24th November 2013, 18:34
  2. Run program from console
    By tczaude in forum Qt Programming
    Replies: 2
    Last Post: 6th November 2011, 11:04
  3. Program crashes on OS X Lion
    By fyodor in forum Newbie
    Replies: 1
    Last Post: 31st October 2011, 06:18
  4. Program crashes
    By Fallen_ in forum Qt Programming
    Replies: 49
    Last Post: 20th September 2010, 01:41
  5. running external console program by gui program
    By alireza.mixedreality in forum Qt Programming
    Replies: 4
    Last Post: 24th April 2010, 18:05

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.