简体   繁体   中英

Qt : Software using QOpenGLWidget crash on mainwindow.show()

I'm having issue with using QOpenGLWidget. As soon as I try to compile then run a program using QOpenGLWidget, it crashes ( segmentation fault ) when attempting to call mainwindow.show() in the main.cpp file.

This also happens in Qt examples.

Strangely, replacing QOpenGLWidget with QGLWidget, program starts up fine (but I did not test any further)

I'm using Qt5.5.1 (from ubuntu repo) on Linux Mint 18.

Any idea what might happen here?

Got it fixed ! Instead of qt5-qmake, I had the qt5-qmake-gles package installed on my computer. Removing it, and replacing it by qt5-qmake made everything work as expected

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM