Unable to run any QML app (QGLXContext issue)



  • Hi,

    Whenever I tried to run any QML based app (from Qt Create or outside it) I get this error message although all C++ widget based apps work fine!

    How can I fix this issue?

    Starting /home/tansu/Desktop/build-untitled-Desktop_Qt_5_10_0_GCC_64bit-Debug/untitled...
    QML debugging is enabled. Only use this in a safe environment.
    QGLXContext: Failed to create dummy context
    Failed to create OpenGL context for format QSurfaceFormat(version 2.0, options QFlags<QSurfaceFormat::FormatOption>(), depthBufferSize 24, redBufferSize -1, greenBufferSize -1, blueBufferSize -1, alphaBufferSize -1, stencilBufferSize 8, samples -1, swapBehavior QSurfaceFormat::SwapBehavior(DoubleBuffer), swapInterval 1, colorSpace QSurfaceFormat::ColorSpace(DefaultColorSpace), profile  QSurfaceFormat::OpenGLContextProfile(NoProfile)) 
    The program has unexpectedly finished.
    The process was ended forcefully.
    /home/tansu/Desktop/build-untitled-Desktop_Qt_5_10_0_GCC_64bit-Debug/untitled crashed.
    

    I use Linux Mint 18.3 and Qt 5.10.0



  • I fixed this issue by my nvidia driver to recent version from this PPA

    ppa:graphics-drivers/ppa
    


Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.