Important: Please read the Qt Code of Conduct -

Pixmap-error triggered after adding inheritance

  • Hello everyone,

    a few days ago I've asked this "question.":
    I have done some more research and found out that if I only change the model-class by adding inheritance

    @class Model : public QGLWidget@

    the error:
    @QPixmap: It is not safe to use pixmaps outside the GUI thread@
    is triggered as soon as I try to load an *.obj-file into my program.

    The corresponding code I am talking about can be found "here.":

    Anyway, I am tryig to understand why the code is behaving in such a way to be able to load models in the manner I have described in my previous thread.

    Any help will be much appreciated.
    Thanks to all of you

Log in to reply