Results 1 to 6 of 6

Thread: problem with combine Qt 5.4 QOpenGLContext to native opengl context

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Nov 2014
    Posts
    6
    Qt products
    Qt5
    Platforms
    MacOS X Windows
    Thanks
    4

    Default Re: problem with combine Qt 5.4 QOpenGLContext to native opengl context

    If Qt could render in native GL context, it is OK for me. As I know, Qt could render GUI widgets in GraphicView. It seems that Qt could render widgets in GL context. Can you show me some code sample of this?

    Or the FBO solution could fit my need, I also need some code sample, because I have no idea how to begin with.

    Could you please show me some code sample or link to the documents?

  2. #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: problem with combine Qt 5.4 QOpenGLContext to native opengl context

    Quote Originally Posted by jennal View Post
    As I know, Qt could render GUI widgets in GraphicView.
    GraphicsView is a widget. And the "widgets" it renders are not really widgets.

    It seems that Qt could render widgets in GL context.
    It probably could (at least since 5.4) but I don't think that would be a good approach.
    Can you show me some code sample of this?
    No

    Or the FBO solution could fit my need, I also need some code sample, because I have no idea how to begin with.
    Use the docs Luke -- QOpenGLFramebufferObject.
    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.


Similar Threads

  1. Replies: 2
    Last Post: 8th October 2011, 13:50
  2. Replies: 2
    Last Post: 18th November 2009, 03:43
  3. QT4 mess up the OpenGL context ?
    By fev in forum Qt Programming
    Replies: 0
    Last Post: 19th October 2009, 10:25
  4. help on openGL context
    By mickey in forum Qt Programming
    Replies: 1
    Last Post: 29th March 2006, 19:21
  5. Context OpenGL
    By mickey in forum Qt Programming
    Replies: 4
    Last Post: 3rd March 2006, 21:13

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.