Results 1 to 7 of 7

Thread: QGLWidget doesn't hide

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 879 Times in 827 Posts

    Default Re: QGLWidget doesn't hide

    Quote Originally Posted by wysota View Post
    As far as the official line goes, QWS simply doesn't support OpenGL. If you're indeed using QWS then don't use OpenGL. If you need OpenGL, don't use QWS. Best if you just switch to Qt5 with wayland as the compositor. If your hardware supports OpenGLES, it should handle wayland as well.
    I'm not sure if this is really the official line - it's more like the current generation of Qt developers doesn't know QWS themself anymore. When I had to deal with these issues ( 4.6, 4.7 days ) the official line was, that QPA is the new thing and QWS won't be touched anymore. But QPA 4.8. was declared as "not worth to be documented yet" - so the situation is quite unsatisfying at the moment. Guess the strategy today is simply waiting for Wayland.

    But in fact QWS/OpenGL is not so far from being usable if someone would be interested in fixing it. F.e the wrong stacking order of the subsurfaces is an easy patch. More difficult is the logic that tries to restore parts of the screen from the backing store, that doesn't exits for OpenGL surfaces.

    So when you are not willing to patch Qt I would completely agree with Witold: QWS means raster only.

    Uwe

    Quote Originally Posted by wysota View Post
    As far as the official line goes, QWS simply doesn't support OpenGL. If you're indeed using QWS then don't use OpenGL. If you need OpenGL, don't use QWS. Best if you just switch to Qt5 with wayland as the compositor. If your hardware supports OpenGLES, it should handle wayland as well.
    I'm not sure if this is really the official line - it's more like the current generation of Qt developers doesn't know QWS themself anymore. When I had to deal with these issues ( 4.6, 4.7 days ) the official line was, that QPA is the new thing and QWS won't be touched anymore. But QPA 4.8. was declared as "not worth to be documented yet" - so the situation is quite unsatisfying at the moment. Guess the strategy today is simply waiting for Wayland.

    But in fact QWS/OpenGL is not so far from being usable if someone would be interested in fixing it. F.e the wrong stacking order of the subsurfaces is an easy patch. More difficult is the logic that tries to restore parts of the screen from the backing store, that doesn't exits for OpenGL surfaces.

    So when you are not willing to patch Qt I would completely agree with Witold: QWS means raster only.

    Uwe

    Quote Originally Posted by wysota View Post
    As far as the official line goes, QWS simply doesn't support OpenGL. If you're indeed using QWS then don't use OpenGL. If you need OpenGL, don't use QWS. Best if you just switch to Qt5 with wayland as the compositor. If your hardware supports OpenGLES, it should handle wayland as well.
    I'm not sure if this is really the official line - it's more like the current generation of Qt developers doesn't know QWS themself anymore. When I had to deal with these issues ( 4.6, 4.7 days ) the official line was, that QPA is the new thing and QWS won't be touched anymore. But QPA 4.8. was declared as "not worth to be documented yet" - so the situation is quite unsatisfying at the moment. Guess the strategy today is simply waiting for Wayland.

    But in fact QWS/OpenGL is not so far from being usable if someone would be interested in fixing it. F.e the wrong stacking order of the subsurfaces is an easy patch. More difficult is the logic that tries to restore parts of the screen from the backing store, that doesn't exits for OpenGL surfaces.

    So when you are not willing to patch Qt I would completely agree with Witold: QWS means raster only.

    Quote Originally Posted by sebc06 View Post
    Actually QGLWidget is also used to display some overlay data through QPainter, which can't be achieved through V4L (i think).
    Copying a camera image through QPainter/OpenGL is a complete waste of CPU. This could be done much better by hardware - if it supports stuff like different layers. I strongly recommend to read the specs of your GPU !

    Uwe
    Last edited by Uwe; 9th March 2013 at 10:44.

  2. The following user says thank you to Uwe for this useful post:


  3. #2
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,373
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Thanks
    3
    Thanked 5,019 Times in 4,795 Posts
    Wiki edits
    10

    Default Re: QGLWidget doesn't hide

    Quote Originally Posted by Uwe View Post
    I'm not sure if this is really the official line - it's more like the current generation of Qt developers doesn't know QWS themself anymore. When I had to deal with these issues ( 4.6, 4.7 days ) the official line was, that QPA is the new thing and QWS won't be touched anymore. But QPA 4.8. was declared as "not worth to be documented yet" - so the situation is quite unsatisfying at the moment. Guess the strategy today is simply waiting for Wayland.
    One of the videos from last DevDays, the one on QPA in Qt5 contains a quote from the developer (AFAIR even with a slide to support that) that QWS doesn't support OpenGL. He also says it is technically possible to combine the two after a lot of struggle but it depends on the hardware and QWS simply isn't prepared for it.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. The following user says thank you to wysota for this useful post:


Similar Threads

  1. One QGLWidget that manage QGLWidget childs
    By polch in forum Qt Programming
    Replies: 4
    Last Post: 12th December 2012, 12:26
  2. TrayIcon ContextMenu doesn't hide
    By krisztiantobias in forum Qt Programming
    Replies: 1
    Last Post: 31st July 2012, 15:27
  3. QGLWidget doesn't update
    By qtbnl in forum Qt Programming
    Replies: 12
    Last Post: 14th February 2011, 18:41
  4. QGLWidget doesn't paint when I add another data member
    By Thoughtjacked in forum Qt Programming
    Replies: 6
    Last Post: 17th October 2007, 16:45
  5. Simple frame control doesn't resize when I hide()
    By MrGarbage in forum Qt Programming
    Replies: 2
    Last Post: 29th August 2007, 23:32

Tags for this Thread

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
  •  
Qt is a trademark of The Qt Company.