Results 1 to 1 of 1

Thread: QGLWidget with overlay

  1. #1
    Join Date
    Jan 2007
    Posts
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11

    Default QGLWidget with overlay

    Is it possible to clarify how to create a QGLWidget with an overlay? As I understand if overlays are supported an overlay context is created too.
    I have enabled overlays in hardware:

    > glxinfo
    ...
    0x23 16 tc 1 16 1 r y . 5 5 5 0 4 0 0 16 16 16 16 0 0 None
    0x5a 16 tc 1 16 1 r . . 5 5 5 0 4 0 0 16 16 16 16 0 0 None
    0x5b 16 tc 1 16 1 r y . 5 5 5 0 4 24 0 16 16 16 16 0 0 None
    0x5c 16 tc 1 16 1 r . . 5 5 5 0 4 24 0 16 16 16 16 0 0 None

    > xprop -root
    ...
    ...
    SERVER_OVERLAY_VISUALS(SERVER_OVERLAY_VISUALS) = 0x23, 0x1, 0x0, 0x1, 0x5a, 0x1, 0x0, 0x1, 0x5b, 0x1, 0x0, 0x1, 0x5c, 0x1, 0x0, 0x1

    I never seem to be able to query that a GL widget has an overlay despite asking for it.
    Is it common to therefore use perhaps QGLContext::chooseVisual() in a subclass?
    Attached a simple example that might highlight what I'm missing? I am testing overlay support with QGLFormat::hasOpenGLOverlays() which returns true.

    Thanks.
    Attached Files Attached Files

Similar Threads

  1. QGLWidget 2d painting performance
    By amnesiac in forum Qt Programming
    Replies: 15
    Last Post: 28th January 2008, 14:09
  2. QGLWidget resize problem.
    By anderl in forum Qt Programming
    Replies: 2
    Last Post: 22nd January 2008, 08:57
  3. Transparent QWidget on QGLWidget
    By showhand in forum Qt Programming
    Replies: 2
    Last Post: 27th November 2006, 01:00
  4. QGLWidget on another QGLWiget
    By showhand in forum Qt Programming
    Replies: 1
    Last Post: 23rd October 2006, 09:59
  5. Pixmap Overlay
    By ToddAtWSU in forum Qt Programming
    Replies: 5
    Last Post: 22nd June 2006, 20:19

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.