Answer the question
In order to leave comments, you need to log in
How to get a widget by coordinates (Qt, C++)?
I need to get the pointer to the widget by the coordinate of the mouse cursor. About the widgetAt() function; I know, but there is such a nuance.
Let's say there are 2 windows. One of them has a widget, with the mouseMove event overridden so that the window can be dragged by dragging the widget. The second window has another widget. So, I need to determine if the mouse cursor is inside the widget of the second window while dragging the first window. How can I do that ?
To be clear, I'm designing draggable tabs like in chrome, and I want to make a window become a tab when hovered over another window's QTabBary.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question