You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is it possible to use QtImGui with multiple QOpenGLWidgets sharing the same class? I'm calling QtImGui functions while QOpenGLWidget is underMouse() which prevents crashing but ImGui does not render in the other active viewports, only the first one.
The text was updated successfully, but these errors were encountered:
Hey @stephkno are you initializing the QtImgui as the default renderer? I had a similar issue and when I saw the "multiple" example I understood what I was doing wrong. So check if you are saving the the renderRef and ImplotContext like this:
and not just initializing as the default renderer:
QtImGui::initialize(this);
so you can reuse it in the paintGL function:
QtImGui::newFrame(ref);
ImPlot::SetCurrentContext(ctx);
//rendering code here
ImGui::Render();
QtImGui::render(ref);
I have multiple widgets using the same OpenGLWIdget subclass with no problem now as you can see in the image below
(ChartView is the QtImgui widget = )):
Is it possible to use QtImGui with multiple QOpenGLWidgets sharing the same class? I'm calling QtImGui functions while QOpenGLWidget is
underMouse()
which prevents crashing but ImGui does not render in the other active viewports, only the first one.The text was updated successfully, but these errors were encountered: