L
L
LNK2016-08-27 18:33:29
Programming
LNK, 2016-08-27 18:33:29

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

1 answer(s)
M
mikhail_404, 2016-08-28
@mikhail_404

Seems to solve your problem: StackOverflow

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question