Results 1 to 2 of 2

Thread: QGLWidget on another QGLWiget

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

    Default QGLWidget on another QGLWiget

    Hi, all

    Here is my problem about mutlti-QGLWidget.

    I want to draw large size of data on one QGLWidget (background) , while do some other things on another QGLWidget (foreground). By this way, the background scene will not repaint. That is, the foreground QGLWidget should be transparent and the two QGLWidget should be overlap which look like one.

    Can anybody give some good advices for me? Or other way? Thanks in advance!!
    There is no secret in the face of the code.

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

    Default Re: QGLWidget on another QGLWiget

    Eeeemm... this is a really unusual design If you modify the foreground, the background would still need to be repainted, otherwise some artifacts would be left. Why don't you try it with a single GLWidget? You can always render the background to a pixmap and then use that pixmap as a texture for your background. Of course it is a wacky way, I would rather do that the "regular" way.

Similar Threads

  1. QGLWidget renderText rotation
    By ToddAtWSU in forum Qt Programming
    Replies: 4
    Last Post: 19th September 2007, 20:52
  2. Using QGLWidget paint engine to draw regular widgtes?
    By high_flyer in forum Qt Programming
    Replies: 11
    Last Post: 9th October 2006, 12:06
  3. QGLWidget Problems
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 2nd October 2006, 22:06
  4. QGLWidget with multiple monitors
    By Rayven in forum Qt Programming
    Replies: 3
    Last Post: 4th August 2006, 10:28
  5. QGLWidget updateGL()
    By Lele in forum Qt Programming
    Replies: 7
    Last Post: 30th May 2006, 15:08

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.