When I run QtWebEngine 'fancyBrowser' demo application or my own QtWebEngine app,I get following error in runtime
nouveau: kernel rejected pushbuf: No such file or directory nouveau: ch0: krec 0 pushes 0 bufs 2 relocs 0 nouveau: ch0: buf 00000000 00000002 00000004 00000004 00000000 nouveau: ch0: buf 00000001 00000006 00000004 00000000 00000004
Where am I doing wrong?
Reinstall your graphic driver or just use software aceleration. Add this line in your main.cpp before starting the app. This attribute must be set before Q(Gui)Application is constructed.
QApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
QCoreApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
QGuiApplication::setAttribute(Qt::AA_UseSoftwareOpenGL);
Or try with OpenGL
QApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
QCoreApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
QGuiApplication::setAttribute(Qt::AA_UseDesktopOpenGL);
More info:
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.