View Full Version : Using QWebEnginePage in a console app crashes my program.
ayanda83
20th February 2017, 10:25
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.12344 How can I resolve this?
d_stranz
20th February 2017, 20:07
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.
anda_skoa
21st February 2017, 10:32
Hence me recommending multi-processes for that in the other thread :)
Cheers,
_
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.