Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Show/hide of window containing QGLWidget fails on remote X server
Forum Updated to NodeBB v4.3 + New Features

Show/hide of window containing QGLWidget fails on remote X server

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 2.8k Views 1 Watching
  • 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
    Jakob Schou
    wrote on last edited by
    #1

    I have a window (QMainWindow or QDialog) with a QGLWidget. If I call hide() and then show() on the window I will get the following error when running in an X windows system (remote: linux server, mac client):

    X Error: GLXBadContext 147
    Extension: 146 (Uknown extension)
    Minor opcode: 5 (Unknown request)
    Resource id: 0xa0001c

    (and nothing is rendered)

    Any ideas what could cause this behavior?

    1 Reply Last reply
    0
    • A Offline
      A Offline
      artem.marchenko
      wrote on last edited by
      #2

      I've got same problem in the same environment (local Mac, remote - Linux box).

      What I do is I am creating a QDeclarativeView (actually QApplicationViewer that QtCreator's wizard constructs) and use QGLWidget as a viewport in the following manner:
      @QmlApplicationViewer viewer;
      ...
      viewer.setViewport(new QGLWidget);
      ...
      viewer.setResizeMode(QDeclarativeView::SizeRootObjectToView);
      ...
      viewer.setFrameStyle(0);
      viewer.setAttribute(Qt::WA_OpaquePaintEvent);
      viewer.setAttribute(Qt::WA_NoSystemBackground);
      viewer.setAttribute(Qt::WA_DeleteOnClose);
      viewer.setStyleSheet("background: transparent; border: none");
      viewer.setWindowFlags(Qt::FramelessWindowHint);
      viewer.setMainQmlFile(QLatin1String("qml/twclientqml/TwClient.qml"));
      viewer.showFullScreen();@

      What could this message actually mean? OpenGL initialization failed and system falls back to raster?

      1 Reply Last reply
      0

      • Login

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