Results 1 to 4 of 4

Thread: OpenGL rendering in separate thread, Qt 5.0.1

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2015
    Posts
    1
    Qt products
    Qt5
    Platforms
    MacOS X Windows

    Default Re: OpenGL rendering in separate thread, Qt 5.0.1

    Bump. I'd love to hear an update for this as well. I used the same example (new link here: https://doc-snapshots.qt.io/4.8/demo...-main-cpp.html) only I'm trying to make it work with QOpenGLWidget since QGLWidget is deprecated and have the same error showing up. I'm just trying to get the example to work at this point for a proof of concept that rendering can be done on a separate thread while still using a QPainter.

    UPDATE: My own test is a much simplified version of the original. I am just trying to render a QImage, since we'll be rendering video. So basically, from the original example in question:
    - I've changed QGLWidget to QOpenGLWidget
    - Used UI file vs MDI Window since our app works that way
    - Separated classes for my own clarity
    - Removed all the extra GLPainter stuff and simply use drawImage with a QImage

    Like the original, I get the error, but if I press ignore I still see my image rendered.
    Attaching my own project.
    ThreadTest.zip
    Last edited by wesblake; 27th October 2015 at 23:29.

Similar Threads

  1. GUI Updates from separate Thread
    By sa5webber in forum Newbie
    Replies: 5
    Last Post: 16th June 2012, 20:08
  2. update widget from separate thread
    By method in forum Qt Programming
    Replies: 5
    Last Post: 10th July 2009, 14:33
  3. Accesing widgets from separate thread
    By msmihai in forum Qt Programming
    Replies: 2
    Last Post: 8th December 2008, 11:48
  4. new QWidget in separate thread
    By magland in forum Qt Programming
    Replies: 15
    Last Post: 7th February 2008, 12:32
  5. handling paintGL in a separate thread
    By al101 in forum Qt Programming
    Replies: 1
    Last Post: 15th May 2007, 17:04

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.