[Interest] Best way to threaded render (images) going forward?
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,
>> > 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
>> 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
> Wes Krasko
> "Stay away from negative people. They have a problem for every solution."
"Stay away from negative people. They have a problem for every solution."
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Interest