Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt5 + OpenGL fails to run under Qt Creator
Forum Update on Monday, May 27th 2025

Qt5 + OpenGL fails to run under Qt Creator

Scheduled Pinned Locked Moved Qt Creator and other tools
qt creatorrunopengl
1 Posts 1 Posters 1.5k Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    JohnE
    wrote on 11 Oct 2015, 13:22 last edited by
    #1

    Hi!

    If a make a qmainwindow with a QGLWidget in it and add some gl code to that widget. The program fails to run under qt creator. Running it from terminal works without errors.
    I am guessing that I need to add some enviroment variables to my run configuration, but have no clue which ones.

    Error messages:
    libGL error: No matching fbConfigs or visuals found
    libGL error: failed to load driver: swrast
    Unrecognized OpenGL Version

    Versions:
    qt5-qtbase-devel: 5.5.0
    mesa-libGL-devel: 10.6.3-3.20150729
    qt-creator: 3.5.0-1

    Any help is appreciated.

    1 Reply Last reply
    0

    1/1

    11 Oct 2015, 13:22

    • Login

    • Login or register to search.
    1 out of 1
    • First post
      1/1
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved