[Interest] Best way to threaded render (images) going forward?

Wesley Krasko wesblake at gmail.com
Mon Nov 25 19:14:35 CET 2019


Anybody? I've been on this one for a week now and I just can't seem to
figure out what I'm doing wrong or missing.

On Thu, Nov 21, 2019 at 3:04 PM Wesley Krasko <wesblake at gmail.com> wrote:

> Thanks. For now anyways I'm trying to just move from QGLWidget to
> QOpenGLWidget, buy time.
> Can I get some help? In the QGLWidget one I currently have there is a
> separate thread to render and it uses QPainter.
> I'm trying to do the same for the new class but I can't seem to get a
> QPainter working no matter what! The app runs but as soon as drawing starts
> it crashes because, but I"m using similar methods to what I did before. If
> I comment out just the attempt to create QPainter, it works fine, renders
> fast just doing the glclear part. Hopefully I can attach here. There is a
> lot of "Extra" from our previous surface/class, but it's not yet used
> anyways. As mentioned, this is working as is, but where you find "//TODO
> HERE" in the code, I tried many ways to use a QPainter in the thread
> without success.
>
>
> On Tue, Nov 19, 2019 at 11:18 AM Christoph Feck <cfeck at kde.org> wrote:
>
>> On 11/19/19 19:52, Wesley Krasko wrote:
>> > Yes, I've read about RHI but it all seems to imply it's for QT Quick,
>> what
>> > about Qt Widget based apps going forward?
>>
>> Let me quote what is written there: "We will need to base all our
>> rendering infrastructure (QPainter, the Qt Quick Scenegraph, and our 3D
>> support) on top of that layer."
>>
>> QWidgets use QPainter for rendering.
>>
>> > Is my best bet QOpenGLWidget until 6.x comes out then and then re-write
>> again?
>>
>> If you are using OpenGL, RHI won't magically change your code. Use
>> QPainter, the Qt Quick scene graph, or Qt3D, depending on your case.
>>
>> _______________________________________________
>> Interest mailing list
>> Interest at qt-project.org
>> https://lists.qt-project.org/listinfo/interest
>>
>
>
> --
> Wes Krasko
> www.worldwidewes.com
> www.kraskofamily.com
> "Stay away from negative people. They have a problem for every solution."
>
>

-- 
Wes Krasko
www.worldwidewes.com
www.kraskofamily.com
"Stay away from negative people. They have a problem for every solution."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20191125/542c3e38/attachment.html>


More information about the Interest mailing list