seanchas116 / qtimgui Goto Github PK
View Code? Open in Web Editor NEWQt (QOpenGLWidget / QOpenGLWindow) backend for ImGui
License: MIT License
Qt (QOpenGLWidget / QOpenGLWindow) backend for ImGui
License: MIT License
Hi, when using latest IMGUI , there is a 'error ' pop up dialog show up again and again. But runs fine under your version.
Would you fix it?
thanks.
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.
qtimgui does not seem to support multiple OpenGLWidgets
[Problem]
According to imgui release v1.87 :
2022/02/29: We discovered a backward-compatibility regression in 18700:
Direct legacy reads from io.KeysDown[] won't work with new backends.
And in particular io.KeysDown[GetKeyIndex[XXX]) will buffer overflow in old and new backends.
You can refer to https://github.com/ocornut/imgui/issues/4921
[Solution]
Backend writing to io.KeyMap[], io.KeysDown[] -> backend should call io.AddKeyEvent()
Add package to https://www.qpm.io/
Probably #4 is not working well.
I compiled and run your project, but a main window shown up, no imgui window, could you tell me what's wrong? I used visual studio 2015 to convert you .pro project to a vs project with qt-vs-tools-msvc2015-2.1.1, with Qt5.8 enviroment. thank you.
i actually hope this Dear ImGui can work under Qt4.86 (since one of my project is constructed under this). is it possible? thank you .
winston
The building and running environment is Qt5.13.2 for windows 10.
Describe the bug
Switch ImGui branch to docking branch then run demo, demo crashed, print assert meesage:
Assertion failed: (g.IO.KeyMap[n] >= -1 && g.IO.KeyMap[n] < ((int)(sizeof(g.IO.KeysDown) / sizeof(*(g.IO.KeysDown)))) && "io.KeyMap[] contains an out of bound value (need to be 0..511, or -1 for unmapped key)"), function ErrorCheckNewFrameSanityChecks, file imgui.cpp, line 8557.
Using master ImGui branch is ok, even I check out a new branch from docking and merge master, it also crashed, could you give me some help? Thank you.
Describe the bug
Incorrect background color for modal windows.
Note that I am using imgui 1.89.2.WIP with docking plus some fixes for the keyboard from #44
To Reproduce
Just open the modal popup window as shown in the screenshot.
I already got it working so will post a PR 😃 solving this specifically, no other changes
I'm on windows 10.
A lot of the button widgets don't respond to rapid left-clicks.
I found a bug in the event filter that blocks the QEvent::MouseButtonDblClick events from progressing to imgui.
If I add this to the eventFilter switch statement, the double click events are passed to imgui, and the buttons then respond to rapid left clicks.
You can test this by checking the demo "double click" debug field to make sure the events are getting to imgui. See below for source code change location, and test location.
Input Method Editors can't use in inputtext,but it's ok in gltf backend on windows.
I find the code in glfw backend ,need add something like this:
#if defined(_WIN32)
ImGui::GetMainViewport()->PlatformHandleRaw = (void*)glfwGetWin32Window(bd->Window);
#endif
No rule to make target '../../qtimgui-master/imgui/imgui_draw.cpp', needed by 'debug/imgui_draw.o'. Stop.
Describe the bug
Currently the imgui mouse pos is updated whenever the widget window/window is active. But in the case of widgets windows it also makes sense to check the focus. Otherwise a mouse over the area can trigger hovering effects in imgui when the user is interacting with other QT widgets.
//... ImGuiRenderer.cpp
if (m_window->isActive()) // + also check focus in case of widget
{
const QPoint pos = m_window->mapFromGlobal(QCursor::pos());
io.MousePos = ImVec2(pos.x(), pos.y());
}
else
{
io.MousePos = ImVec2(-1,-1);
}
To Reproduce
Have any widget like a combo box that expands over the widgets area when interacted.
Expected behavior
Imgui mouse pos should not be updated when the widget has no focus other widget has focus to avoid hovering triggers.
Desktop (please complete the following information):
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.